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
pull/27/merge
stan 2008-07-24 15:52:52 +00:00
parent bf955715ee
commit 8a1b646834
1 changed files with 2 additions and 2 deletions

View File

@ -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, " " );