changeset 9:52d0fa25c554 currrent-release

bug fix
author kono
date Sun, 04 Dec 2005 03:21:49 +0900
parents 77780b728543
children a6481689f99c
files uip/.gdb_history uip/mhlsbr.c
diffstat 2 files changed, 59 insertions(+), 57 deletions(-) [+]
line wrap: on
line diff
--- a/uip/.gdb_history	Sun Dec 04 02:34:48 2005 +0900
+++ b/uip/.gdb_history	Sun Dec 04 03:21:49 2005 +0900
@@ -1,60 +1,3 @@
-b main
-run
-exit
-q
-b main
-run
-exit
-q
-b main
-run
-q
-b main
-b ml_conv
-run /tmp/draft.1
-c
-c
-n
-p codeing
-p coding
-l
-p ml_coding_info
-up
-l
-where
-n
-p s
-c
-c
-run
-run -auto -headers -junet  /tmp/draft.1
-c
-p ml_coding_info
-c
-where
-s
-s
-n
-p opt
-n
-run
-c
-n
-n
-p s
-c
-b ml_puts
-b ml_fputs
-c
-c
-b fputs
-run
-p argv[1]
-c
-c
-run
-c
-where
 up
 l
 tb putc
@@ -254,3 +197,60 @@
 up
 l
 q
+run ~/Mail.old/ie-faculty/mail.msh
+b mhlsbr
+run ~/Mail.old/ie-faculty/mail.msh
+b main
+run ~/Mail.old/ie-faculty/mail.msh
+q
+q
+run ~/Mail.old/ie-faculty/mail.msh
+q
+b showcmd
+b mhlsbr
+c
+c
+c
+c
+c
+c
+c
+ c
+q
+run
+show +inbox
+run +nttdata
+q
+l
+where
+q
+where
+up
+up
+up
+up
+up
+l
+q
+where
+up
+up
+up
+up
+up
+l
+l m_getfld
+q
+up
+up
+up
+up
+up
+up
+l
+q
+l process
+where
+l 979
+c
+q
--- a/uip/mhlsbr.c	Sun Dec 04 02:34:48 2005 +0900
+++ b/uip/mhlsbr.c	Sun Dec 04 03:21:49 2005 +0900
@@ -1034,6 +1034,7 @@
                         cp++;
 		    while(cp) {
 			cp = index (cp, 'c');
+			if (!cp) break;
 			if (!strncasecmp(cp,"charset",7)) {
 			    cp+=7;
 			    break;
@@ -1041,6 +1042,7 @@
 			    cp++;
 			}
 		    }
+		    if (!cp) continue;
                     while (isspace (*cp)||*cp=='=') cp++;
 		    
                     for (dp = cp; istoken (*dp); dp++);