aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-rewrite-head.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-15 17:15:47 +0100
committerMattias Andrée <maandree@kth.se>2017-01-15 17:15:47 +0100
commitd6c07e7fa021e13b5b9914cb15f13c711ecd387d (patch)
tree75fd767b2078a786c6bdb6729c45a63fd3b81979 /src/blind-rewrite-head.c
parentblind-config: fix -j (diff)
downloadblind-d6c07e7fa021e13b5b9914cb15f13c711ecd387d.tar.gz
blind-d6c07e7fa021e13b5b9914cb15f13c711ecd387d.tar.bz2
blind-d6c07e7fa021e13b5b9914cb15f13c711ecd387d.tar.xz
Use macros to write the head
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-rewrite-head.c')
-rw-r--r--src/blind-rewrite-head.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blind-rewrite-head.c b/src/blind-rewrite-head.c
index 1de8a29..9111485 100644
--- a/src/blind-rewrite-head.c
+++ b/src/blind-rewrite-head.c
@@ -38,8 +38,7 @@ rewrite(struct stream *stream, int frames_auto)
else if (stream->frames != frame_count)
eprintf("%s: frame count mismatch\n", stream->file);
- sprintf(head, "%zu %zu %zu %s\n%cuivf%zn",
- stream->frames, stream->width, stream->height, stream->pixfmt, 0, &headlen);
+ SPRINTF_HEAD_ZN(head, stream->frames, stream->width, stream->height, stream->pixfmt, &headlen);
length = stream->frames * frame_size;
if (length > (size_t)SSIZE_MAX || (size_t)headlen > (size_t)SSIZE_MAX - length)