From: <mar...@us...> - 2008-05-15 18:59:01
|
Revision: 11139 http://gphoto.svn.sourceforge.net/gphoto/?rev=11139&view=rev Author: marcusmeissner Date: 2008-05-15 11:57:48 -0700 (Thu, 15 May 2008) Log Message: ----------- do not escape / in filenames, but only in director5y names Modified Paths: -------------- trunk/libgphoto2/camlibs/topfield/puppy.c Modified: trunk/libgphoto2/camlibs/topfield/puppy.c =================================================================== --- trunk/libgphoto2/camlibs/topfield/puppy.c 2008-05-15 12:14:35 UTC (rev 11138) +++ trunk/libgphoto2/camlibs/topfield/puppy.c 2008-05-15 18:57:48 UTC (rev 11139) @@ -194,9 +194,12 @@ free (xfolder); return NULL; } - sprintf (path, "%s/%s", xfolder, xfilename); + strcpy (path, xfolder); + strcat (path, "/"); + backslash (path); + strcat (path, xfilename); free (xfolder); - backslash(path); + free (xfilename); return path; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |