summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-09-19 12:51:49 -0600
committerEduardo Chappa <chappa@washington.edu>2015-09-19 12:51:49 -0600
commit040d361422b6b5791678220366be2374107801b1 (patch)
treecddb775d654d27f15a36127b30a48a717185d1f9
parenta5bec83c5704f49844a9232d16aab0b2b9bf633e (diff)
downloadalpine-040d361422b6b5791678220366be2374107801b1.tar.xz
* Crash when reviewing history of saving attachments.
-rw-r--r--alpine/mailcmd.c3
-rw-r--r--pith/pine.hlp4
2 files changed, 4 insertions, 3 deletions
diff --git a/alpine/mailcmd.c b/alpine/mailcmd.c
index 37d54eb4..f8ae770c 100644
--- a/alpine/mailcmd.c
+++ b/alpine/mailcmd.c
@@ -4681,8 +4681,7 @@ get_export_filename(struct pine *ps, char *filename, char *deefault,
p = get_next_hist(*history, filename, 0, NULL);
}
- if(p != NULL){
- fn = last_cmpnt(p);
+ if(p != NULL && (fn = last_cmpnt(p)) != NULL){
strncpy(dir, p, MIN(fn - p, sizeof(dir)-1));
dir[MIN(fn - p, sizeof(dir)-1)] = '\0';
if(fn - p > 1)
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 6fdbd01f..5d34e65b 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 103 2015-09-18 22:15:37
+Alpine Commit 104 2015-09-19 12:51:36
============= h_news =================
<HTML>
<HEAD>
@@ -334,6 +334,8 @@ Bugs that have been addressed include:
selection would not show those messages if those messages are on
top of the current message in the top of the screen. Reported by
Ulf-Dietrich Braumann.
+
+ <LI> Crash when reviewing history of saving attachments.
</UL>