From 1c910efc793d22a0aa269fa5314474d69a6212af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 14 Apr 2015 15:52:47 +0200 Subject: Fix problem with overwriting last element with zeros --- scripts/write_config/symlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/write_config') diff --git a/scripts/write_config/symlist.c b/scripts/write_config/symlist.c index 51904bc..e0e7a1f 100644 --- a/scripts/write_config/symlist.c +++ b/scripts/write_config/symlist.c @@ -16,7 +16,7 @@ struct symlist *symlist_read(FILE * f) { int c; do { c = fgetc(f); - if (c == EOF || c == '\n') { + if (c == '\n') { w[w_pos] = '\0'; if ((size_t) id > ret->size) { ret->size *= 2; -- cgit v1.2.3