summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-24 15:08:14 +0100
committerVolker Lendecke <vl@samba.org>2009-01-24 15:08:21 +0100
commit8b804077128cd981bf238b2506c589dff3bf8ff4 (patch)
treea3f9466e515238f75951607b69bfbb2567cae329 /source3
parentc23f0f13b42745a7b9f7c0a5b37f1ad521f886df (diff)
downloadsamba-8b804077128cd981bf238b2506c589dff3bf8ff4.tar.gz
samba-8b804077128cd981bf238b2506c589dff3bf8ff4.tar.bz2
samba-8b804077128cd981bf238b2506c589dff3bf8ff4.zip
Fix a segfault in parse_logentry
entry->data_record.strings is type smb_ucs2, so the pointer arithmetic increments by two :-)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_eventlog_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_eventlog_lib.c b/source3/rpc_server/srv_eventlog_lib.c
index aa75fb1b46..8cbb319e9b 100644
--- a/source3/rpc_server/srv_eventlog_lib.c
+++ b/source3/rpc_server/srv_eventlog_lib.c
@@ -715,7 +715,7 @@ bool parse_logentry( char *line, Eventlog_entry * entry, bool * eor )
if (!entry->data_record.strings) {
return false;
}
- memcpy(entry->data_record.strings + old_len,
+ memcpy(((char *)entry->data_record.strings) + old_len,
temp,
tmp_len);
entry->data_record.strings_len += tmp_len;