From 0462f4b3f82ed090ef34f5f0270a4feef2c15a6f Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 5 Jun 2017 10:39:43 -1000 Subject: [PATCH] Don't output null byte %Ck6BN5nMnD5izHrm6vhkjOVuFrWbs0DY3HqDsheAlH0=.sha256 --- sbotc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbotc.c b/sbotc.c index f0630b4..73ae928 100644 --- a/sbotc.c +++ b/sbotc.c @@ -34,7 +34,7 @@ #define BOXS_MAXLEN 4096 #define write_buf(fd, buf) \ - write_all(fd, buf, sizeof(buf)) + write_all(fd, buf, sizeof(buf)-1) struct boxs_header { uint16_t len;