diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-14 15:52:47 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-14 15:52:47 +0200 |
commit | 1c910efc793d22a0aa269fa5314474d69a6212af (patch) | |
tree | 8158404b4691e3804c6978d4227235cd954ae799 | |
parent | f4f33d092f5360338c5488ad5dbb2ac65244f09a (diff) | |
download | linux-conf-perf-1c910efc793d22a0aa269fa5314474d69a6212af.tar.gz linux-conf-perf-1c910efc793d22a0aa269fa5314474d69a6212af.tar.bz2 linux-conf-perf-1c910efc793d22a0aa269fa5314474d69a6212af.zip |
Fix problem with overwriting last element with zeros
-rw-r--r-- | scripts/write_config/symlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |