]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lib/irc_string.c
CHANSERV: remove accidental sendemail from SETEMAIL command.
[irc/quakenet/newserv.git] / lib / irc_string.c
index 0359b51b43a34230e312fccaeb704d274db8aa6f..1f0b588422f2bef961d7a42da8a19982b642cd1c 100644 (file)
@@ -122,7 +122,7 @@ int match2patterns(const char *patrn, const char *string) {
 /*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or      */
 /*  code or tables extracted from it, as desired without restriction.    */
 /* Modified by Fox: no more length parameter, always does the whole string */
-unsigned long crc32(const char *s) {
+unsigned long irc_crc32(const char *s) {
   const char *cp;
   unsigned long crc32val;
   
@@ -134,7 +134,7 @@ unsigned long crc32(const char *s) {
 }
 
 /* Case insensitive version of the above */
-unsigned long crc32i(const char *s) {
+unsigned long irc_crc32i(const char *s) {
   const char *cp;
   unsigned long crc32val;
   
@@ -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);
     }
   }