Commit 0d6772b9 authored by Julian Rother's avatar Julian Rother

More use of xsnprintf

parent a8d840fb
......@@ -38,14 +38,11 @@ int main(int argc, char *argv[])
/* Prepare arguments */
jobid = atoi(argv[1]);
jstrb(jlookup(argv[4], "lectureid"), "-1", lectureid);
snprintf(BL(src), "%s/%s", CONFIG_VIDEOS_RELEASED,
xsnprintf(BL(src), "%s/%s", CONFIG_VIDEOS_RELEASED,
jstr(jlookup(argv[4], "path"), ""));
src[sizeof(src)-1] = 0;
snprintf(BL(tmp), "%s/.tmp-%i", CONFIG_VIDEOS_TMP, jobid);
tmp[sizeof(tmp)-1] = 0;
snprintf(BL(dest), "%s/thumbnail/l_%s.jpg", CONFIG_VIDEOS_RELEASED,
xsnprintf(BL(tmp), "%s/.tmp-%i", CONFIG_VIDEOS_TMP, jobid);
xsnprintf(BL(dest), "%s/thumbnail/l_%s.jpg", CONFIG_VIDEOS_RELEASED,
lectureid);
dest[sizeof(dest)-1] = 0;
ping_job(jobid, "running", 0);
/* Open src */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment