Chameleon

Chameleon Commit Details

Date:2015-08-25 18:56:36 (3 years 9 months ago)
Author:ErmaC
Commit:2755
Parents: 2754
Message:fix allocate space for ascii string zero terminating in device_inject.c (thx Slice and BlackOsx)
Changes:
M/branches/ErmaC/Enoch/i386/libsaio/device_inject.c

File differences

branches/ErmaC/Enoch/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: 2755