summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-20 10:20:13 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-20 10:20:13 +0000
commit55e25b1551f7d397252e5f9802e8cb5e7c4b57e5 (patch)
treeaf5198ac7159f30e6218dab66a0c037e872bb944
parent3aeece0541d4654cfc3b27fc9b9cd869c9890180 (diff)
Fixed EOF problem
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2349 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--tools/convbdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c
index 00db9ae61f..3c87df691e 100644
--- a/tools/convbdf.c
+++ b/tools/convbdf.c
@@ -643,7 +643,7 @@ char *bdf_getline(FILE *fp, char *buf, int len)
*b++ = c;
}
*b = '\0';
- if (c == EOF)
+ if (c == EOF && b == buf)
return NULL;
if (b != buf && !isprefix(buf, "COMMENT"))
break;