commit 9d2383812e39e7a72f305b8e8f3c36b549a48f75
parent 1dfc35ab04da3e4ea584697dfaf8fa43e49b0e7b
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Sun, 13 Mar 2016 20:34:31 -0600
lib: off by one more in size calc
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/runtime.c b/lib/runtime.c
@@ -61,6 +61,9 @@ walk_nodes(int fd)
/* Find out the total size of data we're going to send */
while (walk.size != 0) {
+ /* Number of tus is 8 bytes */
+ msg_size += sizeof(num_tus);
+
/* File name size, 8 bytes */
msg_size += sizeof(file_name_sz);
/* The file name */