diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-15 17:15:47 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-15 17:15:47 +0100 |
| commit | d6c07e7fa021e13b5b9914cb15f13c711ecd387d (patch) | |
| tree | 75fd767b2078a786c6bdb6729c45a63fd3b81979 /src/blind-from-text.c | |
| parent | blind-config: fix -j (diff) | |
| download | blind-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-from-text.c')
| -rw-r--r-- | src/blind-from-text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blind-from-text.c b/src/blind-from-text.c index 68ea869..6717c99 100644 --- a/src/blind-from-text.c +++ b/src/blind-from-text.c @@ -47,7 +47,7 @@ main(int argc, char *argv[]) eprintf("<stdin>: no input\n"); } if (len && line[len - 1] == '\n') - line[--len] = '\n'; + line[--len] = '\0'; if ((size_t)len + 6 > sizeof(stream.buf)) eprintf("<stdin>: head is too long\n"); stream.fd = -1; |
