FreeBSD Bugzilla – Attachment 219832 Details for
Bug 251275
shells/ksh2020 "complete -F" doesn't work unless the prefix length is exactly 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't reassign the "len" variable and compute the exact spaces needed
patch-src-cmd-ksh93-edit-pcomplete.c (text/plain), 491 bytes, created by
Romeo Rajomalaza
on 2020-11-20 16:10:56 UTC
(
hide
)
Description:
Don't reassign the "len" variable and compute the exact spaces needed
Filename:
MIME Type:
Creator:
Romeo Rajomalaza
Created:
2020-11-20 16:10:56 UTC
Size:
491 bytes
patch
obsolete
>--- src/cmd/ksh93/edit/pcomplete.c.orig 2020-11-20 14:41:10.427589000 +0000 >+++ src/cmd/ksh93/edit/pcomplete.c 2020-11-20 14:47:28.958973000 +0000 >@@ -338,8 +338,7 @@ > } > if (complete) { > // Reserved space on stack and try again. >- len = 3; >- tlen = (c + 1) * sizeof(char *) + len * c + 1024; >+ tlen += (c + 1) * sizeof(char *) + (plen + slen + 1) * c; > stkseek(shp->stk, tlen); > complete = 2; > av = (char **)stkptr(shp->stk, 0);
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 251275
: 219832