1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/mail/ml/files/patch-af
Chris Piazza 6d6a45d6b7 Update to ml version 3.4
PR:	12186
Submitted by:	maintainer
1999-06-26 09:22:50 +00:00

21 lines
595 B
Plaintext

--- ../imap-4/src/c-client/mtest.c.orig Sun Jun 13 16:51:38 1999
+++ ../imap-4/src/c-client/mtest.c Sun Jun 13 16:54:03 1999
@@ -479,7 +479,7 @@
void prompt (char *msg,char *txt)
{
printf ("%s",msg);
- gets (txt);
+ fgets (txt, (8 * MAILTMPLEN), stdin);
}
/* Interfaces to C-client */
@@ -664,7 +664,7 @@
puts (" Msg (end with a line with only a '.'):");
body->type = TYPETEXT;
*text = '\0';
- while (gets (line)) {
+ while (fgets (line, MAILTMPLEN, stdin)) {
if (line[0] == '.') {
if (line[1] == '\0') break;
else strcat ((char *) text,".");