]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chanservlog.c
searching for changes
[irc/quakenet/newserv.git] / chanserv / chanservlog.c
index 62c4e3dcc7945fe414ed92b00f3a2e0802776fe5..6d03783f279410200d5e7321ca736db55f5a4091 100644 (file)
@@ -57,7 +57,7 @@ void cs_log(nick *np, char *event, ... ) {
 
   now=time(NULL);
   tm=gmtime(&now);
-  strftime(timebuf,100,"%Y-%m-%d %H:%M:%S",tm);
-  len=snprintf(buf2,1024,"[%s] %s %s\n",timebuf,userbuf,buf);
+  strftime(timebuf,sizeof(timebuf),"%Y-%m-%d %H:%M:%S",tm);
+  len=snprintf(buf2,sizeof(buf2),"[%s] %s %s\n",timebuf,userbuf,buf);
   write(logfd, buf2, len);
 }