From 8368de7830f336533f9fe6369641070239bf739c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 26 Apr 2004 20:39:55 +0000 Subject: More debugging fixes. --- common/buffer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/buffer.c b/common/buffer.c index 0cb045c..57d20e2 100644 --- a/common/buffer.c +++ b/common/buffer.c @@ -561,7 +561,7 @@ void* ha_bufdec64(ha_buffer_t* buf, const char* src, size_t* bytes) buffer_bump(buf, 4); if(ha_buferr(buf)) - return; + return NULL; switch(state) { @@ -691,13 +691,13 @@ void* ha_bufdechex(ha_buffer_t* buf, const char* src, size_t* bytes) src++; } + /* We always null terminate anyway */ + *(buf->_rp++) = 0; + /* All bytes have to come in pairs */ if(state != 0) return NULL; - /* We always null terminate anyway */ - *(buf->_rp++) = 0; - if(bytes) *bytes = done; -- cgit v1.2.3