From 2d7ffa37feba265468d3f33ffcaba4ef4cb6cecb Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 26 Jan 2010 16:16:41 +0100 Subject: [PATCH] Fix problem parsing configuration file if the last line is not empty --- src/util/misc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/misc.c b/src/util/misc.c index 5f88272..1273b39 100644 --- a/src/util/misc.c +++ b/src/util/misc.c @@ -225,7 +225,6 @@ int file_read_lines(const char* file, void* data, file_line_handler_t handler) if (*start) { - buf[strlen(start)] = 0; LOG_DUMP("Line: %s", start); if (handler(start, line_count+1, data) < 0) return -1;