aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9400b75..8337dc5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -61,7 +61,7 @@ int justify(size_t linebuffer_capacity, FILE *in, FILE *out) {
linebuffer_clear(lb);
linebuffer_append_word(lb, word);
}
- memset(word, 0, MAX_WORD_LENGTH + 2);
+ memset(word, 0, MAX_WORD_LENGTH + 1);
}
if (read_word_result == READ_WORD_ERR_READ) {
fprintf(stderr, "Error reading word\n");