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-d78f3d33393fpull/27/merge
parent
bf955715ee
commit
8a1b646834
|
@ -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, " " );
|
||||
|
|
Loading…
Reference in New Issue