FreeBSD Bugzilla – Attachment 11235 Details for
Bug 22198
inet_ntop may set errno to ENOSPC and needs better docs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 480 bytes, created by
Nick Johnson
on 2000-10-21 21:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Nick Johnson
Created:
2000-10-21 21:20:01 UTC
Size:
480 bytes
patch
obsolete
>--- inet_ntop.c.orig Sat Oct 21 13:02:52 2000 >+++ inet_ntop.c Sat Oct 21 13:02:04 2000 >@@ -86,7 +86,7 @@ > char tmp[sizeof "255.255.255.255"]; > > if (SPRINTF((tmp, fmt, src[0], src[1], src[2], src[3])) > size) { >- errno = ENOSPC; >+ errno = EINVAL; > return (NULL); > } > strcpy(dst, tmp); >@@ -183,7 +183,7 @@ > * Check for overflow, copy, and we're done. > */ > if ((size_t)(tp - tmp) > size) { >- errno = ENOSPC; >+ errno = EINVAL; > return (NULL); > } > strcpy(dst, tmp);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22198
: 11235 |
11236