--- rxvt-unicode/src/rxvtutil.C 2009/09/04 15:40:13 1.10 +++ rxvt-unicode/src/rxvtutil.C 2011/01/08 10:06:48 1.12 @@ -26,25 +26,6 @@ #include "rxvtutil.h" -class byteorder byteorder; - -unsigned int byteorder::e; - -byteorder::byteorder () -{ - union { - uint32_t u; - uint8_t b[4]; - } w; - - w.b[0] = 0x11; - w.b[1] = 0x22; - w.b[2] = 0x33; - w.b[3] = 0x44; - - e = w.u; -} - #if !HAVE_GCC_BUILTINS int rxvt_ctz (unsigned int x) CONST { @@ -95,7 +76,8 @@ { if (len > temp_len) { - temp_buf = realloc (temp_buf, len); + free (temp_buf); + temp_buf = malloc (len); temp_len = len; }