diff options
-rw-r--r-- | ext/standard/crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 9b06de8070..1e138c775f 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -149,7 +149,7 @@ PHP_FUNCTION(crypt) { struct crypt_data buffer; memset(&buffer, 0, sizeof(buffer)); - RETURN_STRING(crypt_r(str, salt, &buffer)); + RETURN_STRING(crypt_r(str, salt, &buffer), 1); } #else RETURN_STRING(crypt(str, salt), 1); |