projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8722749
)
Fix potential buffer overflow.
author
Carl Hetherington
<cth@carlh.net>
Tue, 23 Aug 2016 08:28:17 +0000
(09:28 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 23 Aug 2016 08:28:17 +0000
(09:28 +0100)
src/tools/dcpomatic_kdm_cli.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic_kdm_cli.cc
b/src/tools/dcpomatic_kdm_cli.cc
index 5126e1954c10405b1929c2acf0a72e1b188afa11..65b98ee424dffea948573b578538a3c1518a4014 100644
(file)
--- a/
src/tools/dcpomatic_kdm_cli.cc
+++ b/
src/tools/dcpomatic_kdm_cli.cc
@@
-83,7
+83,7
@@
duration_from_string (string d)
{
int N;
char unit_buf[64] = "\0";
- sscanf (d.c_str(), "%d %6
4
s", &N, unit_buf);
+ sscanf (d.c_str(), "%d %6
3
s", &N, unit_buf);
string const unit (unit_buf);
if (N == 0) {