From 2778403ae4a7fca968fb8f09cabcab2bbc83b998 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 13 Jul 2012 19:11:46 +0100 Subject: Fix detection of available pages in getbnbook, and remove newly unneeded flash detection --- getbnbook.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/getbnbook.c b/getbnbook.c index a9ae88d..a10d98e 100644 --- a/getbnbook.c +++ b/getbnbook.c @@ -33,7 +33,6 @@ int getpagelist() char *s, *l; int i, num; char avail[STRMAX]; - char dummy1[STRMAX], dummy2[STRMAX]; numpages = 0; @@ -57,7 +56,10 @@ int getpagelist() for(i=0, s=buf;*s && i", &num, dummy1, dummy2, avail); + sscanf(s, "