FreeBSD Bugzilla – Attachment 1093 Details for
Bug 4064
libedit's history search is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.58 KB, created by
Helbig
on 1997-07-09 00:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Helbig
Created:
1997-07-09 00:10:01 UTC
Size:
1.58 KB
patch
obsolete
>Index: search.c >=================================================================== >RCS file: /usr/cvsroot/src/lib/libedit/search.c,v >retrieving revision 1.5 >diff -c -r1.5 search.c >*** search.c 1997/06/25 08:14:17 1.5 >--- search.c 1997/07/08 21:39:09 >*************** >*** 464,471 **** > (void)strncpy(tmpbuf, el->el_search.patbuf, sizeof(tmpbuf) - 1); > el->el_search.patbuf[0] = '.'; > el->el_search.patbuf[1] = '*'; >! (void)strncpy(&el->el_search.patbuf[2], tmpbuf, >! sizeof(el->el_search.patbuf) - 3); > el->el_search.patlen++; > el->el_search.patbuf[el->el_search.patlen++] = '.'; > el->el_search.patbuf[el->el_search.patlen++] = '*'; >--- 464,470 ---- > (void)strncpy(tmpbuf, el->el_search.patbuf, sizeof(tmpbuf) - 1); > el->el_search.patbuf[0] = '.'; > el->el_search.patbuf[1] = '*'; >! (void)strncpy(&el->el_search.patbuf[2], tmpbuf, EL_BUFSIZ - 3); > el->el_search.patlen++; > el->el_search.patbuf[el->el_search.patlen++] = '.'; > el->el_search.patbuf[el->el_search.patlen++] = '*'; >*************** >*** 479,486 **** > tmpbuf[tmplen++] = '*'; > #endif > tmpbuf[tmplen] = '\0'; >! (void)strncpy(el->el_search.patbuf, tmpbuf, >! sizeof(el->el_search.patbuf) - 1); > el->el_search.patlen = tmplen; > } > el->el_state.lastcmd = (el_action_t) dir; /* avoid c_setpat */ >--- 478,484 ---- > tmpbuf[tmplen++] = '*'; > #endif > tmpbuf[tmplen] = '\0'; >! (void)strncpy(el->el_search.patbuf, tmpbuf, EL_BUFSIZ - 1); > el->el_search.patlen = tmplen; > } > el->el_state.lastcmd = (el_action_t) dir; /* avoid c_setpat */
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 4064
: 1093