diff options
author | Michal Marek <mmarek@suse.cz> | 2010-09-30 16:21:12 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-09-30 16:26:39 -0400 |
commit | 19c29f326075e2c66e34d98f2a0cf22901b2d8e9 (patch) | |
tree | 5c5d839f0f11b1dadbd3308fa4be52f9d140bca4 /scripts/kconfig/symbol.c | |
parent | a01ebe154c03f6ad58a1ec1bda616032bfe232e0 (diff) |
kconfig: Fix realloc usage()
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index dc5dcf2189a0..c0efe102d655 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -878,7 +878,7 @@ const char *sym_expand_string_value(const char *in) | |||
878 | newlen = strlen(res) + strlen(symval) + strlen(src); | 878 | newlen = strlen(res) + strlen(symval) + strlen(src); |
879 | if (newlen > reslen) { | 879 | if (newlen > reslen) { |
880 | reslen = newlen; | 880 | reslen = newlen; |
881 | realloc(res, reslen); | 881 | res = realloc(res, reslen); |
882 | } | 882 | } |
883 | 883 | ||
884 | strcat(res, symval); | 884 | strcat(res, symval); |