mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 03:22:05 -04:00
don't do pointer arithmetic on null pointers
This commit is contained in:
parent
1affefab31
commit
74da83876c
1 changed files with 1 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ isc_buffer_putmem(isc_buffer_t *b, unsigned char *base, unsigned int length)
|
|||
REQUIRE(ISC_BUFFER_VALID(b));
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue