diff options
author | George Wang <gwang@php.net> | 2020-08-10 19:11:26 -0400 |
---|---|---|
committer | George Wang <gwang@php.net> | 2020-08-10 19:11:26 -0400 |
commit | 1b0a2bb0f54452012e595cde979b006fd8cd7640 (patch) | |
tree | d0816f673aba24e2f8e025903bd5c532a23f47b5 | |
parent | 81e31eff0bc570155070183bd857b3f238ad3af6 (diff) | |
parent | 07cb2755bec2fe4671b35defc9e76f495ce6e9d1 (diff) | |
download | php-git-1b0a2bb0f54452012e595cde979b006fd8cd7640.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
-rw-r--r-- | sapi/litespeed/lsapilib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 116b3ca57b..566b855ce9 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -2624,7 +2624,8 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) while( isspace( *pBind ) ) ++pBind; - strncpy( achAddr, pBind, 256 ); + strncpy(achAddr, pBind, 255); + achAddr[255] = 0; switch( *p ) { |