diff options
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) ; } |