diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-21 03:59:05 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-21 03:59:05 +0000 |
commit | 5ecffe6eb5853ef0f2f868bae75796746ed32c58 (patch) | |
tree | 2dcb7441c67f2c01f88345b44d6a17bc8caa2522 /ext/standard/html.c | |
parent | 462d545a638f9e7d8d732a3d6a65926beefd59f4 (diff) | |
download | php-git-5ecffe6eb5853ef0f2f868bae75796746ed32c58.tar.gz |
Use strlcpy() rather then strcpy()
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r-- | ext/standard/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c index 5da3eaae07..5284e543f2 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -1138,7 +1138,7 @@ PHPAPI char *php_escape_html_entities(unsigned char *old, int oldlen, int *newle } replaced[len++] = '&'; - strcpy(replaced + len, rep); + strlcpy(replaced + len, rep, maxlen); len += l; replaced[len++] = ';'; } |