diff options
-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 30abdd1bbe..b51e668223 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -2622,7 +2622,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 ) { |