From 4b39769738e50883bc3d604047e2542048c91c07 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Fri, 4 Oct 2013 00:28:27 +0900 Subject: [PATCH] enventor - fix invalid memoary allocation. --- src/bin/indent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/indent.c b/src/bin/indent.c index e2c06f9..5278993 100644 --- a/src/bin/indent.c +++ b/src/bin/indent.c @@ -83,6 +83,8 @@ indent_insert_br_case(indent_data *id, Evas_Object *entry) } int space = indent_space_get(id, entry); + if (space <= 0) return; + //Alloc Empty spaces char *p = alloca(space + 1); memset(p, ' ', space);