From ea3dc510c16a9bd2c35b51eeeccad313badc03c7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 04:43:58 +0000 Subject: Changed a strcpy to strlcpy git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1549 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index d33da7e7d..9f7073615 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -1228,7 +1228,7 @@ bool process_module_umode(char umode, userrec* source, void* dest, bool adding) { s2 = new userrec; strlcpy(s2->nick,ServerName,NICKMAX); - strcpy(s2->modes,"o",52); + strlcpy(s2->modes,"o",52); s2->fd = -1; source = s2; faked = true; -- cgit v1.2.3