Index: trunk/i386/libsaio/xml.c =================================================================== --- trunk/i386/libsaio/xml.c (revision 1144) +++ trunk/i386/libsaio/xml.c (revision 1145) @@ -299,11 +299,11 @@ pos = 0; char *configBuffer; - - - configBuffer = malloc(strlen(buffer)+1); - strcpy(configBuffer, buffer); - + int strlength = strlen(buffer); + configBuffer = malloc(strlength+1); + bcopy(buffer, configBuffer, strlength); + configBuffer[strlength] = 0; + buffer_start = configBuffer; while (1)