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
/
zconf.l
diff --git
a/config/zconf.l
b/config/zconf.l
index 5d9b060e88f7d2932de473840d333b147e9389a2..7578853e7238c0401e546b2cfc80b0bd59916f1e 100644
(file)
--- a/
config/zconf.l
+++ b/
config/zconf.l
@@
-52,7
+52,7
@@
static void append_string(const char *str, int size)
if (new_size > text_asize) {
new_size += START_STRSIZE - 1;
new_size &= -START_STRSIZE;
- text = realloc(text, new_size);
+ text =
x
realloc(text, new_size);
text_asize = new_size;
}
memcpy(text + text_size, str, size);