From 21afd6048de9d68a55700d70d1647e5ee2eacf7e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 12:44:35 +0000 Subject: Optimized out a strlcpy here git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2634 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_away.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd_away.cpp b/src/cmd_away.cpp index 8814259af..037ef4127 100644 --- a/src/cmd_away.cpp +++ b/src/cmd_away.cpp @@ -49,7 +49,7 @@ void cmd_away::Handle (char **parameters, int pcnt, userrec *user) } else { - strlcpy(user->awaymsg,"",MAXAWAY); + *user->awaymsg = 0; WriteServ(user->fd,"305 %s :You are no longer marked as being away",user->nick); } } -- cgit v1.2.3