From: <bru...@us...> - 2009-08-15 14:36:13
|
Revision: 4213 http://hugin.svn.sourceforge.net/hugin/?rev=4213&view=rev Author: brunopostle Date: 2009-08-15 12:24:21 +0000 (Sat, 15 Aug 2009) Log Message: ----------- Fix for crash when path contains spaces #2137412 (ippei) Modified Paths: -------------- autopano-sift-C/trunk/APSCpp/APSCpp.c Modified: autopano-sift-C/trunk/APSCpp/APSCpp.c =================================================================== --- autopano-sift-C/trunk/APSCpp/APSCpp.c 2009-08-15 12:10:29 UTC (rev 4212) +++ autopano-sift-C/trunk/APSCpp/APSCpp.c 2009-08-15 12:24:21 UTC (rev 4213) @@ -211,15 +211,8 @@ break; case 'n': // Set filename (Hugin & PTools) { char *p = im->name; - READ_VAR( "%s", p ); - // strip quotes - if( *p == '"' ){ - while( p[1] != '"' ){ - p[0] = p[1]; - ++p; - } - *p = 0; - } + // assume always quoted + READ_VAR("\"%[^\"]\"", p); } break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |