Browse code

Use '\0' instead of 0 when we mean a char.

John Hawthorn authored on 17/05/2016 02:28:32
Showing 1 changed files

... ...
@@ -52,7 +52,7 @@ void choices_fread(choices_t *c, FILE *file) {
52 52
 		c->buffer = safe_realloc(c->buffer, capacity);
53 53
 	}
54 54
 	c->buffer = safe_realloc(c->buffer, c->buffer_size + 1);
55
-	c->buffer[c->buffer_size++] = 0;
55
+	c->buffer[c->buffer_size++] = '\0';
56 56
 
57 57
 	/* Truncate buffer to used size, (maybe) freeing some memory for
58 58
 	 * future allocations.