summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index 36eab9be96..1c0b301ca8 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -119,7 +119,7 @@ static void php3i_to64(char *s, long v, int n) {
PHP_FUNCTION(crypt)
{
- char salt[PHP3_MAX_SALT_LEN];
+ char salt[PHP3_MAX_SALT_LEN+1];
pval *arg1, *arg2;
salt[0]='\0';