diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-16 19:28:32 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-16 19:28:32 -0700 |
commit | fa85f4ddeb8346139b7571b554d3dfbb749c27b0 (patch) | |
tree | 09aa4900389604cb8bdfecbfc06fa6d3a28aad88 | |
parent | 60e3b9119c42c4a926d146f20bc64a193935b8f4 (diff) |
Use '\0' instead of 0 when we mean a char.
-rw-r--r-- | choices.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ void choices_fread(choices_t *c, FILE *file) { c->buffer = safe_realloc(c->buffer, capacity); } c->buffer = safe_realloc(c->buffer, c->buffer_size + 1); - c->buffer[c->buffer_size++] = 0; + c->buffer[c->buffer_size++] = '\0'; /* Truncate buffer to used size, (maybe) freeing some memory for * future allocations. |