Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105803833
D9936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
568 B
Referenced Files
None
Subscribers
None
D9936.diff
View Options
Index: head/usr.bin/uuencode/uuencode.c
===================================================================
--- head/usr.bin/uuencode/uuencode.c
+++ head/usr.bin/uuencode/uuencode.c
@@ -160,7 +160,7 @@
fprintf(output, "begin-base64 %o %s\n", mode, *av);
while ((n = fread(buf, 1, sizeof(buf), stdin))) {
++sequence;
- rv = b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));
+ rv = b64_ntop(buf, n, buf2, nitems(buf2));
if (rv == -1)
errx(1, "b64_ntop: error encoding base64");
fprintf(output, "%s%s", buf2, (sequence % GROUPS) ? "" : "\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 10:29 PM (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15547963
Default Alt Text
D9936.diff (568 B)
Attached To
Mode
D9936: Use nitems().
Attached
Detach File
Event Timeline
Log In to Comment