Bryan Drewery před 21 roky
rodič
revize
df64e22c67
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      src/misc.c

+ 2 - 1
src/misc.c

@@ -422,8 +422,9 @@ void show_channels(int idx, char *handle)
 void make_rand_str(char *s, size_t len)
 {
   int r = 0;
+  size_t j = 0;
 
-  for (size_t j = 0; j < len; j++) {
+  for (j = 0; j < len; j++) {
     r = randint(4);
     if (r == 0)
       s[j] = '0' + randint(10);