--- rxvt-unicode/src/rxvtutil.C 2006/02/20 22:40:35 1.6 +++ rxvt-unicode/src/rxvtutil.C 2007/10/31 09:55:24 1.9 @@ -1,4 +1,4 @@ -/*--------------------------------*-C-*---------------------------------* +/*----------------------------------------------------------------------* * File: rxvtutil.C *----------------------------------------------------------------------* * @@ -94,12 +94,11 @@ rxvt_temp_buf (int len) { if (len > temp_len) - { - free (temp_buf); - temp_buf = malloc (len); + { + temp_buf = realloc (temp_buf, len); temp_len = len; } - + return temp_buf; }