~martanne/ciopfs

b198a3c2f905defbaebb90f17e061fd84f8765ad — Marc Andre Tanner 11 years ago 8a80ea4
ascii: fix off by one which causes a segfault (Philip Tait)

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>
1 files changed, 1 insertions(+), 1 deletions(-)

M ascii.c
M ascii.c => ascii.c +1 -1
@@ 11,7 11,7 @@ static inline bool str_contains_upper(const char *s)

static inline char *str_fold(const char *src)
{
	char *t, *dest = malloc(strlen(src));
	char *t, *dest = malloc(strlen(src) + 1);
	if (!dest)
		return NULL;
	for (t = dest; *src; src++, t++)