Skip to content
Snippets Groups Projects
Commit 99e21288 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

workaround for sun CC included in f_crypt

Rev: src/builtin_functions.c:1.2
parent 5ebdb557
Branches
Tags
No related merge requests found
......@@ -673,8 +673,11 @@ void f_crypt(INT32 args)
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment