projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01ebe1
)
kconfig: Fix realloc usage()
author
Michal Marek
<mmarek@suse.cz>
Thu, 30 Sep 2010 20:21:12 +0000
(22:21 +0200)
committer
Michal Marek
<mmarek@suse.cz>
Thu, 30 Sep 2010 20:26:39 +0000
(22:26 +0200)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/symbol.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/symbol.c
b/scripts/kconfig/symbol.c
index dc5dcf2189a01c33807b1593be13ff4c22c9745f..c0efe102d655c40547afe92014cec1c74b70b3c2 100644
(file)
--- a/
scripts/kconfig/symbol.c
+++ b/
scripts/kconfig/symbol.c
@@
-878,7
+878,7
@@
const char *sym_expand_string_value(const char *in)
newlen = strlen(res) + strlen(symval) + strlen(src);
if (newlen > reslen) {
reslen = newlen;
- realloc(res, reslen);
+ re
s = re
alloc(res, reslen);
}
strcat(res, symval);