kconfig: add xrealloc() helper
[carl9170fw.git] / config / zconf.l
index 5d9b060e88f7d2932de473840d333b147e9389a2..7578853e7238c0401e546b2cfc80b0bd59916f1e 100644 (file)
@@ -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 = xrealloc(text, new_size);
                text_asize = new_size;
        }
        memcpy(text + text_size, str, size);