From 952d182755e497a762eeec0423b04818d8b85ced Mon Sep 17 00:00:00 2001 From: ayin Date: Mon, 27 Aug 2007 21:30:50 +0000 Subject: [PATCH] Use realloc rather than free+malloc. --- src/rxvtutil.C | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rxvtutil.C b/src/rxvtutil.C index a977783b..739848da 100644 --- a/src/rxvtutil.C +++ b/src/rxvtutil.C @@ -1,4 +1,4 @@ -/*--------------------------------*-C-*---------------------------------* +/*----------------------------------------------------------------------* * File: rxvtutil.C *----------------------------------------------------------------------* * @@ -95,8 +95,7 @@ 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; } -- 2.34.1