FreeBSD Bugzilla – Attachment 6257 Details for
Bug 14361
locate bogusly converts to network byte order in error messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 865 bytes, created by
Marc Slemko
on 1999-10-16 19:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Marc Slemko
Created:
1999-10-16 19:50:00 UTC
Size:
865 bytes
patch
obsolete
>Index: util.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/locate/locate/util.c,v >retrieving revision 1.5.2.1 >diff -u -r1.5.2.1 util.c >--- util.c 1999/08/29 15:29:53 1.5.2.1 >+++ util.c 1999/10/16 18:26:19 >@@ -241,7 +241,7 @@ > if (i > MAXPATHLEN || i < -(MAXPATHLEN)) { > i = ntohl(i); > if (i > MAXPATHLEN || i < -(MAXPATHLEN)) >- errx(1, "integer out of +-MAXPATHLEN (%d): %d", MAXPATHLEN, i); >+ errx(1, "integer out of +-MAXPATHLEN (%d): %d", MAXPATHLEN, htonl(i)); > } > return(i); > } >@@ -265,7 +265,7 @@ > if (word > MAXPATHLEN || word < -(MAXPATHLEN)) { > word = ntohl(word); > if (word > MAXPATHLEN || word < -(MAXPATHLEN)) >- errx(1, "integer out of +-MAXPATHLEN (%d): %d", MAXPATHLEN, word); >+ errx(1, "integer out of +-MAXPATHLEN (%d): %d", MAXPATHLEN, htonl(word)); > } > return(word); > }
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 14361
: 6257