Branch: Tag:

1996-09-22

1996-09-22 23:20:00 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

workaround for sun CC included in f_crypt

Rev: src/builtin_functions.c:1.2

673:       saltp=sp[1-args].u.string->str;    } else { -  salt[0] = choise[my_rand()%strlen(choise)]; -  salt[1] = choise[my_rand()%strlen(choise)]; +  unsigned int foo; /* Sun CC want's this :( */ +  foo=my_rand(); +  salt[0] = choise[foo % (unsigned int) strlen(choise)]; +  foo=my_rand(); +  salt[1] = choise[foo % (unsigned int) strlen(choise)];    saltp=salt;    }   #ifdef HAVE_CRYPT