Commit 8b78a172 authored by Rémi Duraffort's avatar Rémi Duraffort

rtsp: fix strncmp length.

(cherry picked from commit 775f1d06cf8fd66507c0ddc3417bef7b5a4e6606)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent b016fc94
......@@ -138,7 +138,7 @@ static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string )
psz_buffer[3] = 0;
i_code = atoi( psz_buffer );
}
else if( !strncmp( psz_string, "SET_PARAMETER", 8 ) )
else if( !strncmp( psz_string, "SET_PARAMETER", sizeof("SET_PARAMETER") - 1 ) )
{
return RTSP_STATUS_SET_PARAMETER;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment