c30c8b805f
ok jakob@
33 lines
917 B
Plaintext
33 lines
917 B
Plaintext
$OpenBSD: patch-pine_mailview_c,v 1.2 2004/08/10 23:47:05 tdeval Exp $
|
|
--- pine/mailview.c.orig Thu Jul 15 02:25:10 2004
|
|
+++ pine/mailview.c Tue Aug 10 23:43:40 2004
|
|
@@ -4306,6 +4306,9 @@
|
|
char buf[256], color[256];
|
|
HANDLE_S *h;
|
|
|
|
+ if (line == NULL)
|
|
+ return (-1);
|
|
+
|
|
for(lp = line; ; lp = up + n){
|
|
/* scan for all of them so we can choose the first */
|
|
if(F_ON(F_VIEW_SEL_URL,ps_global))
|
|
@@ -4381,6 +4384,9 @@
|
|
static int check_for_urls = 0;
|
|
register char *lp;
|
|
|
|
+ if (line == NULL)
|
|
+ return (-1);
|
|
+
|
|
if(isspace((unsigned char)*line)) /* continuation, check or not
|
|
depending on last line */
|
|
lp = line;
|
|
@@ -4424,7 +4430,7 @@
|
|
{
|
|
register char *lp;
|
|
|
|
- if((lp = strchr(line, ':')) &&
|
|
+ if(line && (lp = strchr(line, ':')) &&
|
|
!strncmp(line, AB_COMMENT_STR, strlen(AB_COMMENT_STR)))
|
|
(void) url_hilite(linenum, lp + 1, ins, local);
|
|
|