aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-14 15:52:47 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-14 15:52:47 +0200
commit1c910efc793d22a0aa269fa5314474d69a6212af (patch)
tree8158404b4691e3804c6978d4227235cd954ae799
parentf4f33d092f5360338c5488ad5dbb2ac65244f09a (diff)
downloadlinux-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.c2
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;