pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:2991:    push_int(0);    return;    }    } else {    unsigned int foo; /* Sun CC wants this :( */    foo=my_rand();    salt[0] = choise[foo % (size_t) strlen(choise)];    foo=my_rand();    salt[1] = choise[foo % (size_t) strlen(choise)];    saltp=salt; +  if (args > 1) { +  pop_n_elems(args-1); +  args = 1;    } -  +  }   #ifdef HAVE_CRYPT    ret = (char *)crypt(pwd, saltp);   #else   #ifdef HAVE__CRYPT    ret = (char *)_crypt(pwd, saltp);   #else   #error No crypt function found and fallback failed.   #endif   #endif    if (!ret) {