Commit 775f1d06 authored by Rémi Duraffort's avatar Rémi Duraffort

rtsp: fix strncmp length.

parent a40da5e1
...@@ -138,7 +138,7 @@ static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string ) ...@@ -138,7 +138,7 @@ static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string )
psz_buffer[3] = 0; psz_buffer[3] = 0;
i_code = atoi( psz_buffer ); 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; 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