aboutsummaryrefslogtreecommitdiff
path: root/swaygrab
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 23:42:40 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 23:42:40 +0100
commit364e37a1ebe8d3dfca7f1e59d247ace76e3f90b8 (patch)
treead4982838b282f2424c29490b00014ed62c0bdfe /swaygrab
parent2e0ef533f29212b80efd69eb647893145e8356ae (diff)
Fix whitespace issues.
Diffstat (limited to 'swaygrab')
-rw-r--r--swaygrab/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c
index d64d2ff2..403f7b38 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -72,7 +72,7 @@ void grab_and_apply_movie_magic(const char *file, const char *output,
"-video_size %dx%d -pixel_format argb "
"-i pipe:0 -r %d -vf vflip %s";
char *cmd = malloc(strlen(fmt) - 8 /*args*/
- + numlen(width) + numlen(height) + numlen(framerate) * 2
+ + numlen(width) + numlen(height) + numlen(framerate) * 2
+ strlen(file) + 1);
sprintf(cmd, fmt, framerate, width, height, framerate, file);