git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c1c77
)
r22019: Jeremy, this hopefully fixes the build farm currently. But I think we need
author
Volker Lendecke
<vlendec@samba.org>
Sun, 1 Apr 2007 13:50:02 +0000
(13:50 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:02 +0000
(12:19 -0500)
another get_safe_offset call that also includes the required buffer size.
Volker
source/lib/util.c
patch
|
blob
|
history
diff --git
a/source/lib/util.c
b/source/lib/util.c
index 809071662d5ea43dadb2c4aa3a3aba7eeaa06ea0..b74c08991ae8446de23fb3b984d68369ad5550df 100644
(file)
--- a/
source/lib/util.c
+++ b/
source/lib/util.c
@@
-3132,7
+3132,7
@@
int this_is_smp(void)
char *get_safe_offset(const char *buf_base, size_t buf_len, char *ptr, size_t off)
{
const char *end_base = buf_base + buf_len;
- c
onst c
har *end_ptr = ptr + off;
+ char *end_ptr = ptr + off;
if (!buf_base || !ptr) {
return NULL;
@@
-3143,7
+3143,7
@@
char *get_safe_offset(const char *buf_base, size_t buf_len, char *ptr, size_t of
}
if (end_ptr < end_base) {
- return ptr;
+ return
end_
ptr;
}
return NULL;
}