1
0
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:
Xin LI 2014-06-25 23:42:53 +00:00
parent cf1d80d88c
commit 0196728184
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267886

View File

@ -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: