summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-05-16 19:28:32 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-05-16 19:28:32 -0700
commitfa85f4ddeb8346139b7571b554d3dfbb749c27b0 (patch)
tree09aa4900389604cb8bdfecbfc06fa6d3a28aad88
parent60e3b9119c42c4a926d146f20bc64a193935b8f4 (diff)
Use '\0' instead of 0 when we mean a char.
-rw-r--r--choices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/choices.c b/choices.c
index 99b0d99..ba25749 100644
--- a/choices.c
+++ b/choices.c
@@ -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.