Chameleon

Chameleon Commit Details

Date:2015-08-25 18:58:49 (8 years 7 months ago)
Author:ErmaC
Commit:2757
Parents: 2756
Message:fix allocate space for ascii string zero terminating in device_inject.c (thx Slice and BlackOsx)
Changes:
M/trunk/i386/libsaio/device_inject.c

File differences

trunk/i386/libsaio/device_inject.c
291291
292292
293293
294
294
295295
296296
297297
// devprop_generate_string optimized by cparm
char *devprop_generate_string(DevPropString *string)
{
int len = string->length * 2;
int len = string->length * 2 + 1;
char *buffer = (char*)malloc(len);
char *ptr = buffer;

Archive Download the corresponding diff file

Revision: 2757