mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use correct length for buffer.
Submitted by: Sascha Wildner <swildner dragonflybsd org> MFC after: 2 weeks
This commit is contained in:
parent
cf1d80d88c
commit
0196728184
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267886
@ -114,7 +114,7 @@ addr_to_string(struct sockaddr_storage *ss, char *buffer, int buflen)
|
||||
snprintf(buffer, buflen, "%s.%d", buffer2,
|
||||
ntohs(sin6->sin6_port));
|
||||
else
|
||||
strlcpy(buffer, "-", sizeof(buffer));
|
||||
strlcpy(buffer, "-", buflen);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user