From 8a1b64683429e4ffa12e998daff39342d8205cd6 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 24 Jul 2008 15:52:52 +0000 Subject: [PATCH] Correct issue where address of strings was being taken rather than contents git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2600 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_remote_camera_http.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_remote_camera_http.cpp b/src/zm_remote_camera_http.cpp index d26d6606d..4118ffa74 100644 --- a/src/zm_remote_camera_http.cpp +++ b/src/zm_remote_camera_http.cpp @@ -864,13 +864,13 @@ int RemoteCameraHttp::GetResponse() Debug( 3, "Got boundary '%s'", boundary_header ); - if ( subcontent_length_header ) + if ( subcontent_length_header[0] ) { start_ptr = subcontent_length_header + strspn( subcontent_length_header, " " ); content_length = atoi( start_ptr ); Debug( 3, "Got subcontent length '%d'", content_length ); } - if ( subcontent_type_header ) + if ( subcontent_type_header[0] ) { memset( content_type, 0, sizeof(content_type) ); start_ptr = subcontent_type_header + strspn( subcontent_type_header, " " );