diff -r 7b235fa88008 -r 627b09ee74e4 src/server/ucx/string.c --- a/src/server/ucx/string.c Sat Jan 28 16:01:07 2012 +0100 +++ b/src/server/ucx/string.c Mon Feb 13 13:49:49 2012 +0100 @@ -131,7 +131,11 @@ newstring.length = s.length; newstring.ptr[newstring.length] = 0; - memcpy(newstring.ptr, s.ptr, s.length); + /* TODO: sometimes memcpy and/or memmove destroy the source */ + //memcpy(newstring.ptr, s.ptr, s.length); + for(int i=0;i