diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 8644af8cd..30000dfe2 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -1228,7 +1228,8 @@ bool ModeParser::ProcessModuleUmode(char umode, userrec* source, void* dest, boo { s2 = new userrec; strlcpy(s2->nick,Config->ServerName,NICKMAX-1); - strlcpy(s2->modes,"o",52); + *s2->modes = 'o'; + *(s2->modes+1) = 0; s2->fd = -1; source = s2; faked = true; @@ -1430,7 +1431,7 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user) if (outpars[0]) { char b[MAXBUF]; - strlcpy(b,"",MAXBUF); + *b = 0; unsigned int z = 0; unsigned int i = 0; while (i < strlen (outpars)) |