mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 16:58:31 -04:00
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
This commit is contained in:
1 parent
bf955715ee
commit
8a1b646834
1 file changed
+2
-2
@@ -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, " " );
|
||||
|
||||
Reference in new issue
Block a user