summaryrefslogtreecommitdiff
path: root/mail/imap-uw/files/patch-ae
blob: 7ede8619fd2778c745a2d3d74e24260761e45bad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/mtest/mtest.c.orig	Sat May 29 08:07:06 1999
+++ src/mtest/mtest.c	Fri Feb  4 12:25:32 2000
@@ -49,6 +49,7 @@
 #include "rfc822.h"
 #include "smtp.h"
 #include "nntp.h"
+#include "safegets.h"
 
 /* Excellent reasons to hate ifdefs, and why my real code never uses them */
 
@@ -528,7 +529,7 @@
 void prompt (char *msg,char *txt)
 {
   printf ("%s",msg);
-  gets (txt);
+  safegets (txt);
 }
 
 /* Interfaces to C-client */
@@ -713,7 +714,7 @@
   puts (" Msg (end with a line with only a '.'):");
   body->type = TYPETEXT;
   *text = '\0';
-  while (gets (line)) {
+  while (safegets (line)) {
     if (line[0] == '.') {
       if (line[1] == '\0') break;
       else strcat (text,".");