diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:23:58 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:24:27 -0400 |
| commit | 142861730ea0b020438180bc4ce27091b65e2257 (patch) | |
| tree | fe5f68c886d7c8c2559fb70b0b754695aed9ee91 /src | |
| parent | Remove unnecessary if statement (diff) | |
| download | cli-142861730ea0b020438180bc4ce27091b65e2257.zip | |
Remove unnecesary if statement and fix memset
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |