mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
kconfig: Fix realloc usage()
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
a01ebe154c
commit
19c29f3260
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
res = realloc(res, reslen);
|
||||
}
|
||||
|
||||
strcat(res, symval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue