FreeBSD Bugzilla – Attachment 7966 Details for
Bug 16926
[PATCH] banner doesn't allocate space for nul
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 681 bytes, created by
spock
on 2000-02-23 06:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
spock
Created:
2000-02-23 06:10:00 UTC
Size:
681 bytes
patch
obsolete
>Index: usr.bin/banner/banner.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/banner/banner.c,v >retrieving revision 1.7 >diff -u -r1.7 banner.c >--- banner.c 1999/12/04 02:11:51 1.7 >+++ banner.c 2000/02/02 16:15:08 >@@ -1063,7 +1063,7 @@ > /* Have now read in the data. Next get the message to be printed. */ > if (*argv) { > for(i=0, j=0; i < argc; i++) >- j += strlen(argv[i]) + (i != 0); >+ j += strlen(argv[i]) + 1; > if ((message = malloc(j)) == NULL) > err(1, "malloc"); > strcpy(message, *argv);
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 16926
: 7966