Chameleon

Chameleon Commit Details

Date:2010-11-22 04:53:21 (8 years 7 months ago)
Author:Evan Lojewski
Commit:645
Parents: 644
Message:Fixed malloc error
Changes:
M/branches/meklort/i386/libsaio/xml.c

File differences

branches/meklort/i386/libsaio/xml.c
4040
4141
4242
43
43
4444
4545
4646
......
6464
6565
6666
67
67
6868
6969
7070
{
if(tmp->id == id)
{
tmp->string = malloc(strlen(string+1));
tmp->string = malloc(strlen(string)+1);
sprintf(tmp->string, "%s", string);
return;
}
tmp = tmp->next;
}
//verbose("Unable to locate Ref String %d\n", id);
return "Unknown";
return "";
}

Archive Download the corresponding diff file

Revision: 645