Bryan Drewery 22 ani în urmă
părinte
comite
c1914da5b1
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/misc.c

+ 2 - 1
src/misc.c

@@ -862,7 +862,8 @@ int goodpass(char *pass, int idx, char *nick)
 char *replace(const char *string, const char *oldie, const char *newbie)
 char *replace(const char *string, const char *oldie, const char *newbie)
 {
 {
   static char newstring[1024] = "";
   static char newstring[1024] = "";
-  int str_index, newstr_index, oldie_index, end, new_len, old_len, cpy_len;
+  unsigned int str_index, newstr_index, oldie_index;
+  size_t new_len, old_len, end, cpy_len;
   char *c = NULL;
   char *c = NULL;
 
 
   if (string == NULL) return "";
   if (string == NULL) return "";