--- reference.H.orig 2003-05-11 20:58:51.000000000 +0200 +++ reference.H 2005-06-21 18:33:31.624604128 +0200 @@ -21,7 +21,7 @@ #include #include #include -//#include +#include #include #include #include --- reference.C.orig 2003-05-11 21:27:40.000000000 +0200 +++ reference.C 2005-06-21 18:33:31.624604128 +0200 @@ -220,10 +220,10 @@ } // Escape 8bit characters. string res = ""; - string hexbuf; + char hexbuf[4]; for (unsigned int i = 0; i < s.size(); ++i){ if (s[i] & 0x80) { - ostringstream hexstr(hexbuf); + ostrstream hexstr(hexbuf, 4); hexstr << 'x' << setw(2) << setfill('0') << hex << (int)(s[i] & 0xff); res += hexbuf[0]; res += hexbuf[1];