summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-18 19:13:41 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-18 19:13:41 (EST)
commit369f43cf475d8ca3054029e74126840949183418 (patch)
tree8b87c403ca8ae2a76b2f38c177d93d9cc2c52b8c
parentb8b7c2f67ef418e061e896ab8caf07c7d8f5e50a (diff)
I'm sure that should have been buf0len.
git-svn-id: http://opkg.googlecode.com/svn/trunk@334 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/pkg_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg_parse.c b/libopkg/pkg_parse.c
index a51a3e1..d01dff5 100644
--- a/libopkg/pkg_parse.c
+++ b/libopkg/pkg_parse.c
@@ -319,7 +319,7 @@ pkg_parse_from_stream_nomalloc(pkg_t *pkg, FILE *fp, uint mask,
fprintf(stderr, "%s: fgets: %s\n",
__FUNCTION__, strerror(errno));
ret = -1;
- } else if (strlen(*buf0) == buflen-1) {
+ } else if (strlen(*buf0) == buf0len-1) {
fprintf(stderr, "%s: missing new line character"
" at end of file!\n",
__FUNCTION__);