From e0c6c635b4911161cfc82d63fa8ff737db50e9ff Mon Sep 17 00:00:00 2001 From: zolliker Date: Thu, 4 Sep 2008 12:10:38 +0000 Subject: [PATCH] - problem with long lines in exeBufLoad fixed --- exebuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exebuf.c b/exebuf.c index 15d347dd..7ee47eb7 100644 --- a/exebuf.c +++ b/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;