Chameleon

Chameleon Commit Details

Date:2014-01-07 08:24:34 (10 years 3 months ago)
Author:Chuck Fry
Commit:2296
Parents: 2295
Message:sym_expand_string_value(): fix cppcheck errors; more to be done here
Changes:
M/branches/chucko/i386/config/symbol.c

File differences

branches/chucko/i386/config/symbol.c
881881
882882
883883
884
885
884
885
886
887
888
889
890
886891
887892
888893
newlen = strlen(res) + strlen(symval) + strlen(src) + 1;
if (newlen > reslen) {
reslen = newlen;
res = realloc(res, reslen);
char* newres = NULL;
if (!(newres = realloc(res, newlen))) {
/* TODO: handle error gracefully - for now, punt */
break;
}
res = newres;
reslen = newlen;
}
strcat(res, symval);

Archive Download the corresponding diff file

Revision: 2296