diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-05 00:46:28 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-10-05 00:46:28 +0000 |
commit | de0e88735cf70a6e88a8332399478411e4911598 (patch) | |
tree | 87c6704b7193085cec37827d5799b979f0b058af /src/libstddjb/cbuffer_getv.c | |
parent | 263d548936f8fc5d8c2b0156d87859f175d90911 (diff) | |
download | skalibs-de0e88735cf70a6e88a8332399478411e4911598.tar.xz |
- Fix double macro expansion bug in cbuffer_get* and cbuffer_put*
- rc for 2.3.7.1
Diffstat (limited to 'src/libstddjb/cbuffer_getv.c')
-rw-r--r-- | src/libstddjb/cbuffer_getv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/cbuffer_getv.c b/src/libstddjb/cbuffer_getv.c index 3db638f..22bd6f7 100644 --- a/src/libstddjb/cbuffer_getv.c +++ b/src/libstddjb/cbuffer_getv.c @@ -6,6 +6,8 @@ unsigned int cbuffer_getv (cbuffer_t *b, siovec_t const *v, unsigned int n) { siovec_t vsrc[2] ; + register unsigned int w ; cbuffer_rpeek(b, vsrc) ; - return cbuffer_RSEEK(b, siovec_deal(v, n, vsrc, 2)) ; + w = siovec_deal(v, n, vsrc, 2) ; + return cbuffer_RSEEK(b, w) ; } |