--- rxvt-unicode/src/rxvtutil.C 2004/08/21 05:32:00 1.2 +++ rxvt-unicode/src/rxvtutil.C 2006/01/25 00:42:21 1.3 @@ -38,5 +38,20 @@ free (p); } +static void *temp_buf; +static uint32_t temp_len; + +void * +rxvt_temp_buf (int len) +{ + if (len > temp_len) + { + free (temp_buf); + temp_buf = malloc (len); + temp_len = len; + } + + return temp_buf; +}