pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2016-12-10
2016-12-10 16:45:57 by Martin Nilsson <nilsson@fastmail.com>
43c773ba10b27075a8da4ffc1ac883f54d2b080a (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Fixed crypt() to work on purpose and not just by accident.
3229:
PMOD_EXPORT void f_crypt(INT32 args) { char salt[2];
-
char *ret, *pwd, *saltp = NULL;
+
char *ret, *pwd
= NULL
, *saltp = NULL;
char *alphabet = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
3242:
push_constant_text("\0"); f_minus(2); } while(Pike_sp[-1].u.string->len<8);
+
pwd = Pike_sp[-1].u.string->str;
} if(saltp)