[vlc-commits] rtsp: fix strncmp length.

Rémi Duraffort git at videolan.org
Sun Feb 20 10:49:00 CET 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Feb 20 10:48:38 2011 +0100| [775f1d06cf8fd66507c0ddc3417bef7b5a4e6606] | committer: Rémi Duraffort

rtsp: fix strncmp length.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=775f1d06cf8fd66507c0ddc3417bef7b5a4e6606
---

 modules/access/rtsp/rtsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/rtsp/rtsp.c b/modules/access/rtsp/rtsp.c
index 3793c23..7b1e606 100644
--- a/modules/access/rtsp/rtsp.c
+++ b/modules/access/rtsp/rtsp.c
@@ -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;
     }



More information about the vlc-commits mailing list