]> mj.ucw.cz Git - libucw.git/blobdiff - lib/ff-utf8.h
obj_add_attr_ref() with an on-stack buffer is not advisable, better
[libucw.git] / 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;