mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Do not put filenames in quotes for UNIX
SVN revision: 2018
This commit is contained in:
parent
fbba43ec3c
commit
d82a98cd16
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user