Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
74da8387
Commit
74da8387
authored
Oct 30, 1999
by
Andreas Gustafsson
Browse files
don't do pointer arithmetic on null pointers
parent
1affefab
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/buffer.c
View file @
74da8387
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment