Commit 74da8387 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

don't do pointer arithmetic on null pointers

parent 1affefab
......@@ -392,7 +392,7 @@ isc_buffer_putmem(isc_buffer_t *b, unsigned char *base, unsigned int length)
REQUIRE(b->used + length <= b->length);
cp = b->base + b->used;
cp = (unsigned char *)b->base + b->used;
memcpy(cp, base, length);
b->used += length;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment