- problem with long lines in exeBufLoad fixed
This commit is contained in:
4
exebuf.c
4
exebuf.c
@ -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;
|
||||
|
Reference in New Issue
Block a user