From 17bc9f5d027a2eae6d3971e5660b42a746d3a139 Mon Sep 17 00:00:00 2001 From: Andrea Zoli <zoli@iasfbo.inaf.it> Date: Mon, 1 Sep 2014 18:22:23 +0200 Subject: [PATCH] Fix getLine(). --- src/File.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/File.cpp b/src/File.cpp index a241079..a57a996 100644 --- a/src/File.cpp +++ b/src/File.cpp @@ -126,7 +126,7 @@ char* File::getLine() throw(PacketExceptionIO*) //char* s = new char[500]; static char s[2048]; // static unsigned long dimalloc = 0; - char c; + int c; dword i = 0; if(!closed) @@ -136,7 +136,6 @@ char* File::getLine() throw(PacketExceptionIO*) while( c != '\n' && c != EOF ) { s[i] = c; - //printf("%c", c); i++; if(i>=2048) throw new PacketExceptionIO("Error: it's impossible to read a line with more of 2048 bytes."); -- GitLab