FreeBSD Bugzilla – Attachment 150515 Details for
Bug 195929
usr.bin/sed -- constify, remove line-length limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Process -e optarg verbatim
sed-malloc-e.patch (text/plain), 573 bytes, created by
Mikhail T.
on 2014-12-12 21:55:14 UTC
(
hide
)
Description:
Process -e optarg verbatim
Filename:
MIME Type:
Creator:
Mikhail T.
Created:
2014-12-12 21:55:14 UTC
Size:
573 bytes
patch
obsolete
>Index: main.c >=================================================================== >--- main.c (revision 274711) >+++ main.c (working copy) >@@ -125,7 +125,6 @@ > main(int argc, char *argv[]) > { > int c, fflag; >- char *temp_arg; > > (void) setlocale(LC_ALL, ""); > >@@ -147,11 +146,7 @@ > break; > case 'e': > eflag = 1; >- if ((temp_arg = malloc(strlen(optarg) + 2)) == NULL) >- err(1, "malloc"); >- strcpy(temp_arg, optarg); >- strcat(temp_arg, "\n"); >- add_compunit(CU_STRING, temp_arg); >+ add_compunit(CU_STRING, optarg); > break; > case 'f': > fflag = 1;
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 195929
:
150515
|
150516
|
150518
|
150536
|
150558
|
150663
|
152797
|
153006
|
171898
|
171900
|
172273
|
172402
|
172403
|
172409
|
172442
|
172615
|
172616
|
172618