Skip to content

Commit 1b0a2bb

Browse files
author
George Wang
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 81e31ef + 07cb275 commit 1b0a2bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sapi/litespeed/lsapilib.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,8 @@ int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr )
26242624
while( isspace( *pBind ) )
26252625
++pBind;
26262626

2627-
strncpy( achAddr, pBind, 256 );
2627+
strncpy(achAddr, pBind, 255);
2628+
achAddr[255] = 0;
26282629

26292630
switch( *p )
26302631
{

0 commit comments

Comments
 (0)