Skip to content

Commit 4f98090

Browse files
committed
Unbreak crypt() (fix bug #55439)
# If you want to remove static analyser messages, be my guest, # but please run unit tests after
1 parent 9fbde3c commit 4f98090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/php_crypt_r.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out)
377377
/* Now make the output string */
378378
memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN);
379379
strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1);
380-
strlcat(passwd, "$", 1);
380+
strcat(passwd, "$");
381381

382382
PHP_MD5Final(final, &ctx);
383383

0 commit comments

Comments
 (0)