projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kconfig: add xrealloc() helper
[carl9170fw.git]
/
config
/
symbol.c
diff --git
a/config/symbol.c
b/config/symbol.c
index c4409ee7fee20215928cb70222c62e48f02fadd8..60a76f958f334e2a52bc38e3dbb7a87454a8b023 100644
(file)
--- a/
config/symbol.c
+++ b/
config/symbol.c
@@
-936,7
+936,7
@@
const char *sym_expand_string_value(const char *in)
newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
if (newlen > reslen) {
reslen = newlen;
- res = realloc(res, reslen);
+ res =
x
realloc(res, reslen);
}
strcat(res, symval);