]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/irc_string.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / lib / irc_string.c
index 0359b51b43a34230e312fccaeb704d274db8aa6f..28ac047e141bd9583af3c6f6f80ca27b13b0dcf9 100644 (file)
@@ -261,7 +261,7 @@ const char *longtoduration(unsigned long interval, int format) {
         pos += sprintf(outstring+pos,"%d minute%s ",minutes,minutes==1?"":"s");
       }
       if (seconds>0 || !interval) {
-        pos += sprintf(outstring+pos,"%d second%s ",seconds,seconds==1?"":"s");
+        sprintf(outstring+pos,"%d second%s ",seconds,seconds==1?"":"s");
       }
     }
   } else {
@@ -275,7 +275,7 @@ const char *longtoduration(unsigned long interval, int format) {
       pos += sprintf(outstring+pos, "%dm ",minutes);
     }
     if (seconds>0 || !interval) {
-      pos += sprintf(outstring+pos, "%ds ",seconds);
+      sprintf(outstring+pos, "%ds ",seconds);
     }
   }