summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pith/filter.c11
-rw-r--r--pith/pine.hlp4
2 files changed, 10 insertions, 5 deletions
diff --git a/pith/filter.c b/pith/filter.c
index 13ee459e..22f98ad7 100644
--- a/pith/filter.c
+++ b/pith/filter.c
@@ -9063,21 +9063,23 @@ cid_tempfile_name(char *line, long n, int *is_cidp)
{
int f2 = 0;
int i, found;
- char *s, *t = NULL, *u;
+ char *s, *t = NULL, *u, c;
char imgfile[1024];
char *extp = NULL;
-
+ c = line[n];
+ line[n] = '\0';
s = NULL;
*is_cidp = 0;
if(n > 0){
- if (line[0] == '\"') f2 = 1;
+ if (line[0] == '\"')
+ f2 = 1;
if (n - f2 > 3){
if (!struncmp(line+f2, "cid:", 4)){
*is_cidp = 1;
f2 += 4;
s = fs_get((n - f2 + 4)*sizeof(char));
- snprintf(s, n - f2 + 2, "<%s", line+f2);
+ sprintf(s, "<%s", line+f2);
if (s[strlen(s)-1] == '\"')
s[strlen(s)-1] = '>';
else{
@@ -9120,6 +9122,7 @@ cid_tempfile_name(char *line, long n, int *is_cidp)
}
}
}
+ line[n] = c;
return s;
}
diff --git a/pith/pine.hlp b/pith/pine.hlp
index a8b8f807..965e6424 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 489 2020-07-09 01:58:37
+Alpine Commit 490 2020-07-09 10:17:35
============= h_news =================
<HTML>
<HEAD>
@@ -262,6 +262,8 @@ Bugs addressed:
<LI> When Alpine is built without smime, password file functionality might
fail. Reported by Andres Fehr.
+
+<LI> Crash in PC-Alpine when using the eXternal command.
</UL>
<P>