summaryrefslogtreecommitdiff
path: root/pico/file.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-04-23 00:24:07 -0600
committerEduardo Chappa <chappa@washington.edu>2015-04-23 00:24:07 -0600
commite2e8488ca2d18f2b0eedaa1bfc6826e8a11de025 (patch)
tree9843fcc18bc7739fc3f45503baa51006bd49dabf /pico/file.c
parent69b0d3a5dff7b8be0deada358dad1a55f319d769 (diff)
downloadalpine-e2e8488ca2d18f2b0eedaa1bfc6826e8a11de025.tar.xz
* new version 2.20.7.
* Fix documentation for search to beginning and to end of line, which had not been updated, even though the behavior had changed. * Exact search is sticky, that is, once an exact search is done, so will be the next ones. This is consistent with the default behavior where all searches are not exact. * Pico upgraded to versio 5.08. * some hunks of integrate.patch were added to this source code to make handling of menus consistent, and reduce the size of integrate.patch at the same time.
Diffstat (limited to 'pico/file.c')
-rw-r--r--pico/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pico/file.c b/pico/file.c
index 47c55968..405d2c6f 100644
--- a/pico/file.c
+++ b/pico/file.c
@@ -115,12 +115,13 @@ insfile(int f, int n)
char fname[NLINE], dir[NLINE];
int retval, bye = 0, msg = 0;
char prompt[64], *infile;
- EXTRAKEYS menu_ins[5];
+ EXTRAKEYS menu_ins[10];
EML eml;
if (curbp->b_mode&MDVIEW) /* don't allow this command if */
return(rdonly()); /* we are in read only mode */
+ memset(&menu_ins, 0, 10*sizeof(EXTRAKEYS));
fname[0] = dir[0] = '\0';
while(!bye){
/* set up keymenu stuff */
@@ -566,9 +567,10 @@ filewrite(int f, int n)
register int s;
char fname[NFILEN];
char shows[NLINE], origshows[NLINE], *bufp;
- EXTRAKEYS menu_write[3];
+ EXTRAKEYS menu_write[10];
EML eml;
+ memset(&menu_write, 0, 10*sizeof(EXTRAKEYS));
if(curbp->b_fname[0] != 0){
strncpy(fname, curbp->b_fname, sizeof(curbp->b_fname));
curbp->b_fname[sizeof(curbp->b_fname)-1] = '\0';