From: Sung-jae Park Date: Thu, 24 Jan 2013 05:36:46 +0000 (+0000) Subject: Fix the prevent issue X-Git-Tag: accepted/tizen/mobile/20150530.065423^2~18^2~11^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4127a5010b66860dd0d3f29b187bf6a127fc95de;p=apps%2Fnative%2Fwidget%2Fwidget.git Fix the prevent issue Change-Id: I63c3454f5262c4ff93b7410d6db781c3da9b51da --- diff --git a/packaging/liblivebox.spec b/packaging/liblivebox.spec index 01ddd60..f4156e4 100644 --- a/packaging/liblivebox.spec +++ b/packaging/liblivebox.spec @@ -1,6 +1,6 @@ Name: liblivebox Summary: Library for the development of a livebox -Version: 0.1.10 +Version: 0.1.11 Release: 1 Group: main/app License: Flora License diff --git a/src/livebox.c b/src/livebox.c index b2e6f4d..61a20b5 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -287,7 +287,7 @@ EAPI char *livebox_util_nl2br(const char *str) if (!len) return NULL; - ret = malloc(len); + ret = malloc(len + 1); if (!ret) return NULL; @@ -300,7 +300,7 @@ EAPI char *livebox_util_nl2br(const char *str) char *tmp; len += len; - tmp = realloc(ret, len); + tmp = realloc(ret, len + 1); if (!tmp) { free(ret); return NULL;