fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit 33f62be4c5ee001785e57611a7d1c7ee4aae93da
parent 432e395b54b14d74fd10c478b51340667f86b7b5
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Mon, 16 May 2016 19:28:32 -0700

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

Diffstat:
Mchoices.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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.