summaryrefslogtreecommitdiff
path: root/src/libstddjb/cbuffer_putv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/cbuffer_putv.c')
-rw-r--r--src/libstddjb/cbuffer_putv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/cbuffer_putv.c b/src/libstddjb/cbuffer_putv.c
index 66bed05..6a914de 100644
--- a/src/libstddjb/cbuffer_putv.c
+++ b/src/libstddjb/cbuffer_putv.c
@@ -6,6 +6,8 @@
unsigned int cbuffer_putv (cbuffer_t *b, siovec_t const *v, unsigned int n)
{
siovec_t vdest[2] ;
+ register unsigned int w ;
cbuffer_wpeek(b, vdest) ;
- return cbuffer_WSEEK(b, siovec_deal(vdest, 2, v, n)) ;
+ w = siovec_deal(vdest, 2, v, n) ;
+ return cbuffer_WSEEK(b, w) ;
}