diff options
Diffstat (limited to 'src/cmd_time.cpp')
-rw-r--r-- | src/cmd_time.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp index 214592ea8..f914add49 100644 --- a/src/cmd_time.cpp +++ b/src/cmd_time.cpp @@ -69,9 +69,9 @@ void cmd_time::Handle (char **parameters, int pcnt, userrec *user) time(&rawtime); timeinfo = localtime(&rawtime); - char tms[26]; - snprintf(tms,26,"%s",asctime(timeinfo)); - tms[24] = 0; + char tms[26]; + snprintf(tms,26,"%s",asctime(timeinfo)); + tms[24] = 0; WriteServ(user->fd,"391 %s %s :%s",user->nick,Config->ServerName,tms); |