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:
gerstrong
2009-07-04 11:46:12 +00:00
parent 5a050591f5
commit 6d115861b7
39 changed files with 357 additions and 202 deletions

View File

@@ -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))
{