summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-02-14 18:52:00 +0000
committerNick White <git@njw.me.uk>2012-02-14 18:52:00 +0000
commit30da1ef99a7a709d0e0b682aa8f4978f311bd5e1 (patch)
tree98940833063e4b6c1273de2add8ba3bee9d546e9
parentaf580806a4ac5b481bd53a85832fd76cf9742dc4 (diff)
Fixed buffer size error - thanks Andrey Grozin
-rw-r--r--getbnbook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/getbnbook.c b/getbnbook.c
index 5254f14..8bec295 100644
--- a/getbnbook.c
+++ b/getbnbook.c
@@ -93,7 +93,7 @@ int getpage(int pagenum)
int main(int argc, char *argv[])
{
char *tmp;
- char buf[STRMAX], pgpath[STRMAX];
+ char buf[BUFSIZ], pgpath[STRMAX];
char in[16];
int a, i, n;
FILE *f;