- problem with long lines in exeBufLoad fixed

This commit is contained in:
zolliker
2008-09-04 12:10:38 +00:00
parent 1b1a29ad2b
commit e0c6c635b4

View File

@ -91,7 +91,9 @@ int exeBufLoad(pExeBuf self, char *filename){
return 0;
}
while(fgets(line,255,fd) != NULL){
status = exeBufAppend(self,line);
/* Do not use exeBufAppend here. Lines longer than 255 would get
newline characters within the line */
status = DynStringConcat(self->bufferContent,line);
if(status != 1){
fclose(fd);
return 0;