diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-29 14:35:05 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-12-29 14:35:05 +0000 |
commit | f5b34256ba24a019b9a6dce1655b7cd699f9c1ba (patch) | |
tree | 3da97a2758df862be1a2c509980d1213696a0119 /usr.bin/signify/signify.c | |
parent | 9a73f3132adae61030202c819bced9cdcee31d6c (diff) |
useless change. overwriting the nul byte with a newline means b64_ntop
can use the whole buffer, even the last byte.
Diffstat (limited to 'usr.bin/signify/signify.c')
-rw-r--r-- | usr.bin/signify/signify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/signify/signify.c b/usr.bin/signify/signify.c index d4dc52d4a78..2a431d6bfed 100644 --- a/usr.bin/signify/signify.c +++ b/usr.bin/signify/signify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: signify.c,v 1.94 2014/12/29 14:23:17 tedu Exp $ */ +/* $OpenBSD: signify.c,v 1.95 2014/12/29 14:35:04 tedu Exp $ */ /* * Copyright (c) 2013 Ted Unangst <tedu@openbsd.org> * @@ -235,7 +235,7 @@ writeb64file(const char *filename, const char *comment, const void *buf, COMMENTHDR, comment)) == -1 || nr >= sizeof(header)) errx(1, "comment too long"); writeall(fd, header, strlen(header), filename); - if ((rv = b64_ntop(buf, buflen, b64, sizeof(b64)-1)) == -1) + if ((rv = b64_ntop(buf, buflen, b64, sizeof(b64))) == -1) errx(1, "base64 encode failed"); b64[rv++] = '\n'; writeall(fd, b64, rv, filename); |