diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-23 09:28:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-23 09:28:17 +0100 |
| commit | ded83f17b3568de2ae564d6e16a45e86edeb9fef (patch) | |
| tree | 1d3ef1a58de26784cdf68415c75506984e9dce4b /src/tools/dcpomatic_kdm_cli.cc | |
| parent | 87227491d5572698a33ff3204ec51a5dc54030bc (diff) | |
Fix potential buffer overflow.
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
| -rw-r--r-- | src/tools/dcpomatic_kdm_cli.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc index 5126e1954..65b98ee42 100644 --- 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 %64s", &N, unit_buf); + sscanf (d.c_str(), "%d %63s", &N, unit_buf); string const unit (unit_buf); if (N == 0) { |
