diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-23 17:16:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-23 17:16:32 +0200 |
| commit | ff4c557160a1a1c152ee2b3711e10f9082b3ad73 (patch) | |
| tree | bd2255b023bf04b3b620de07a8e6f0fae35dbf2f | |
| parent | a4c85077526fc1f240e6d02ddc13a988eca27b83 (diff) | |
Fix thinko in previous.
| -rw-r--r-- | src/lib/transcode_job.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index 3fbd91841..50e1386ed 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -126,6 +126,7 @@ TranscodeJob::status () const char buffer[256]; if (finished() || _encoder->finishing()) { strncpy (buffer, Job::status().c_str(), sizeof(buffer) - 1); + buffer[255] = '\0'; } else { snprintf ( buffer, sizeof(buffer), "%s; %" PRId64 "/%" PRId64 " frames", |
