Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
ffworker
Commits
0d6772b9
Commit
0d6772b9
authored
Oct 28, 2017
by
Julian Rother
Browse files
More use of xsnprintf
parent
a8d840fb
Changes
1
Show whitespace changes
Inline
Side-by-side
thumbnail.c
View file @
0d6772b9
...
...
@@ -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
,
x
snprintf
(
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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment