commit | 19c29f326075e2c66e34d98f2a0cf22901b2d8e9 | [log] [tgz] |
---|---|---|
author | Michal Marek <mmarek@suse.cz> | Thu Sep 30 22:21:12 2010 +0200 |
committer | Michal Marek <mmarek@suse.cz> | Thu Sep 30 22:26:39 2010 +0200 |
tree | 5c5d839f0f11b1dadbd3308fa4be52f9d140bca4 | |
parent | a01ebe154c03f6ad58a1ec1bda616032bfe232e0 [diff] [blame] |
kconfig: Fix realloc usage() Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index dc5dcf2..c0efe10 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c
@@ -878,7 +878,7 @@ newlen = strlen(res) + strlen(symval) + strlen(src); if (newlen > reslen) { reslen = newlen; - realloc(res, reslen); + res = realloc(res, reslen); } strcat(res, symval);