From 8b804077128cd981bf238b2506c589dff3bf8ff4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 24 Jan 2009 15:08:14 +0100 Subject: Fix a segfault in parse_logentry entry->data_record.strings is type smb_ucs2, so the pointer arithmetic increments by two :-) --- source3/rpc_server/srv_eventlog_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server') 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; -- cgit