From aa405df0e9a31c1425b04ee437a15273f28ca2c0 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 14 Jan 2015 15:32:42 -0500 Subject: [PATCH] Fix clang compile --- zone/client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index adaa7ce2f..52bced4f4 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -2852,7 +2852,8 @@ void Client::Message_StringID(uint32 type, uint32 string_id, const char* message bufptr += strlen(message_arg[i]) + 1; } - bufptr = '\0'; + // since we're moving the pointer the 0 offset is correct + bufptr[0] = '\0'; if(distance>0) entity_list.QueueCloseClients(this,outapp,false,distance); @@ -2964,7 +2965,8 @@ void Client::FilteredMessage_StringID(Mob *sender, uint32 type, eqFilterType fil bufptr += strlen(message_arg[i]) + 1; } - bufptr = '\0'; + // since we're moving the pointer the 0 offset is correct + bufptr[0] = '\0'; QueuePacket(outapp); safe_delete(outapp);