Do not put filenames in quotes for UNIX

SVN revision: 2018
This commit is contained in:
2008-01-31 08:35:48 +00:00
parent fbba43ec3c
commit d82a98cd16
+3 -2
View File
@@ -21971,9 +21971,10 @@ int create_thumbnail(LOGBOOK * lbs, char *file_name)
#ifdef OS_UNIX
strsubst(str2, sizeof(str2), " ", "\\ ");
strsubst(str, sizeof(str), " ", "\\ ");
#endif
sprintf(cmd, "convert %s -thumbnail \"%s\" %s", str2, thumb_size, str);
#else
sprintf(cmd, "convert \"%s\" -thumbnail \"%s\" \"%s\"", str2, thumb_size, str);
#endif
sprintf(str, "SHELL \"%s\"", cmd);
write_logfile(lbs, str);