chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
@@@ m4
[mLib]
/
struct
/
buf.c
diff --git
a/struct/buf.c
b/struct/buf.c
index d86904c6c02cf1feec293dac9856703223d727a9..bd16ec71473787df0afd393d908ade00a3c00576 100644
(file)
--- a/
struct/buf.c
+++ b/
struct/buf.c
@@
-247,6
+247,7
@@
static int findz(buf *b, size_t *nn)
{ \
uint##n sz; \
if (buf_getu##w(b, &sz)) return (0); \
+ if (BENSURE(b, sz)) return (0); \
*nn = sz; \
return (buf_get(b, sz)); \
}