[vlc-commits] rtsp: fix strncmp length.
Rémi Duraffort
git at videolan.org
Mon Feb 21 22:23:23 CET 2011
vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Feb 20 10:48:38 2011 +0100| [8b78a17228a096d3fd41bb4a59e61c2f03d0ae1a] | committer: Rémi Duraffort
rtsp: fix strncmp length.
(cherry picked from commit 775f1d06cf8fd66507c0ddc3417bef7b5a4e6606)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=8b78a17228a096d3fd41bb4a59e61c2f03d0ae1a
---
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