Changes for the new webpage and bug fixes since 0.2.9.6
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@36 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
@@ -71,7 +71,7 @@ int readStoryText(char **ptext, int episode, char *path)
|
||||
}
|
||||
else
|
||||
{
|
||||
*ptext = (char*) malloc((endflag-startflag)*sizeof(char));
|
||||
*ptext = (char*) malloc((endflag-startflag+10)*sizeof(char));
|
||||
strncpy((*ptext),(char*)filebuf+startflag,(endflag-startflag)*sizeof(char));
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ int readStoryText(char **ptext, int episode, char *path)
|
||||
|
||||
pos = 0;
|
||||
|
||||
*ptext = (char*) malloc(filesize*sizeof(char));
|
||||
*ptext = (char*) malloc((filesize+10)*sizeof(char));
|
||||
|
||||
while(!feof(fp))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user