~mdw
/
mLib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
82fc9c7
)
Merge branch '2.4.x'
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Oct 2019 13:41:53 +0000
(14:41 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Oct 2019 13:41:53 +0000
(14:41 +0100)
* 2.4.x:
struct/buf.c (buf_getmem*): Add an explicit `BENSURE'.
struct/buf.c
patch
|
blob
|
blame
|
history
diff --git
a/struct/buf.c
b/struct/buf.c
index
d86904c
..
bd16ec7
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)); \
}