Chameleon

Chameleon Commit Details

Date:2011-07-12 08:08:15 (13 years 4 days ago)
Author:Evan Lojewski
Commit:1145
Parents: 1144
Message:XML: use bcopy instaed of strcpy
Changes:
M/trunk/i386/libsaio/xml.c

File differences

trunk/i386/libsaio/xml.c
299299
300300
301301
302
303
304
305
306
302
303
304
305
306
307307
308308
309309
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)

Archive Download the corresponding diff file

Revision: 1145