From ce9997829da127000dac5e744a01d051224f9bd8 Mon Sep 17 00:00:00 2001 From: Masafumi Max NAKANE Date: Fri, 20 Sep 1996 05:47:59 +0000 Subject: Upgrade, 3.91 -> 3.95lj1.1b3 --- japanese/pine/files/patch-aa | 54 ++++++++++++-------------------------------- 1 file changed, 14 insertions(+), 40 deletions(-) (limited to 'japanese/pine/files/patch-aa') diff --git a/japanese/pine/files/patch-aa b/japanese/pine/files/patch-aa index 200d7393c348..61a22c67432d 100644 --- a/japanese/pine/files/patch-aa +++ b/japanese/pine/files/patch-aa @@ -1,45 +1,19 @@ -*** imap/ANSI/c-client/mtest.c.bak Mon Sep 5 05:41:28 1994 ---- imap/ANSI/c-client/mtest.c Mon Nov 20 03:00:21 1995 +*** pico/os_unix.c.orig Fri Sep 20 13:43:41 1996 +--- pico/os_unix.c Fri Sep 20 13:44:43 1996 *************** -*** 454,461 **** +*** 1527,1533 **** + #endif + extern int sys_nerr; - void prompt (char *msg,char *txt) - { - printf ("%s",msg); -! gets (txt); +! return((err >= 0 && err < sys_nerr) ? sys_errlist[err] : NULL); } - - /* Interfaces to C-client */ ---- 454,465 ---- - void prompt (char *msg,char *txt) - { -+ char *s; - printf ("%s",msg); -! *txt = '\0'; -! fgets (txt, MAILTMPLEN, stdin); -! if (s = strchr(txt, '\n')) -! *s = '\0'; + +--- 1527,1533 ---- + #endif + extern int sys_nerr; + +! return(((err >= 0) && (err < sys_nerr)) ? (char*)sys_errlist[err] : NULL); } - - /* Interfaces to C-client */ -*************** -*** 600,606 **** - puts (" Msg (end with a line with only a '.'):"); - body->type = TYPETEXT; - *text = '\0'; -! while (gets (line)) { - if (line[0] == '.') { - if (line[1] == '\0') break; - else strcat ((char *) text,"."); ---- 604,613 ---- - puts (" Msg (end with a line with only a '.'):"); - body->type = TYPETEXT; - *text = '\0'; -! while (fgets (line, sizeof(line), stdin)) { -! char *s = strchr(line, '\n'); -! if (s) -! *s = '\0'; - if (line[0] == '.') { - if (line[1] == '\0') break; - else strcat ((char *) text,"."); + + -- cgit v1.2.3