]> mj.ucw.cz Git - libucw.git/commitdiff
When reading, the data end at b->bstop, not b->bufend.
authorMartin Mares <mj@ucw.cz>
Thu, 5 Aug 2004 22:32:30 +0000 (22:32 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 5 Aug 2004 22:32:30 +0000 (22:32 +0000)
lib/ff-utf8.h

index f0a9e17f93c003f2527fbc049c45009181e2786a..296fb9d74d5dde203ca38779ba9c85dd46dedd2d 100644 (file)
@@ -21,7 +21,7 @@ bget_utf8(struct fastbuf *b)
 {
   uns u;
 
-  if (b->bptr + 5 <= b->bufend)
+  if (b->bptr + 5 <= b->bstop)
     {
       GET_UTF8(b->bptr, u);
       return u;