1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-07 22:58:11 +00:00
freebsd-ports/mail/imap-uw/files/patch-ae
Michael Haro 9f804e1f49 update to 4.7a
PR:     16545
Submitted by:   Akinori "Aki" MUSHA <knu@idaemons.org>
2000-02-14 23:20:16 +00:00

29 lines
694 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- 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,".");