|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 09:01 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
<? echo crypt("password", "X"); ?> patch: (need to concentate cutted lines) --- functions/crypt.c.orig Tue Oct 26 03:05:36 1999 +++ functions/crypt.c Tue Oct 26 03:08:21 1999 @@ -147,6 +147,7 @@ } convert_to_string(arg2); memcpy(salt,arg2->value.str.val, MIN(PHP3_MAX_SALT_LEN,arg2->value.str.len)); + salt[MIN(PHP3_MAX_SALT_LEN,arg2->value.str.len)] = '\0'; break; default: WRONG_PARAM_COUNT;