From 9a0956f8aad221a220b45d0dcc166a63e514302f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 May 2005 19:41:15 +0000 Subject: Replacement of bzero with memset for solaris 10 compat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1428 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 4c7a13a9f..703705f23 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -420,7 +420,7 @@ void WriteCommon(userrec *u, char* text, ...) va_end(argsPtr); // FIX: Stops a message going to the same person more than once - bzero(&already_sent,65536); + memset(&already_sent,0,65536); bool sent_to_at_least_one = false; @@ -472,7 +472,7 @@ void WriteCommonExcept(userrec *u, char* text, ...) vsnprintf(textbuffer, MAXBUF, text, argsPtr); va_end(argsPtr); - bzero(&already_sent,65536); + memset(&already_sent,0,65536); for (int i = 0; i < MAXCHANS; i++) { -- cgit v1.2.3