diff options
Diffstat (limited to 'fdtput.c')
-rw-r--r-- | fdtput.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -96,12 +96,7 @@ static int encode_value(struct display_info *disp, char **arg, int arg_count, /* enlarge our value buffer by a suitable margin if needed */ if (upto + len > value_size) { value_size = (upto + len) + 500; - value = realloc(value, value_size); - if (!value) { - fprintf(stderr, "Out of mmory: cannot alloc " - "%d bytes\n", value_size); - return -1; - } + value = xrealloc(value, value_size); } ptr = value + upto; |