diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 23:20:38 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 23:20:38 +0000 |
commit | 8e7fd48a294d7d6e54c6d07989807cff33ab19bd (patch) | |
tree | 0e35601cdb966c752e15cc4e5381c7e20e13fd50 /mail/imap-uw/files/patch-ae | |
parent | science/sigrok-cli: update to 0.5.0 (diff) |
Rename mail/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363275
Diffstat (limited to 'mail/imap-uw/files/patch-ae')
-rw-r--r-- | mail/imap-uw/files/patch-ae | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/mail/imap-uw/files/patch-ae b/mail/imap-uw/files/patch-ae deleted file mode 100644 index a3b490909a09..000000000000 --- a/mail/imap-uw/files/patch-ae +++ /dev/null @@ -1,47 +0,0 @@ ---- src/mtest/mtest.c.orig Sat May 29 08:07:06 1999 -+++ src/mtest/mtest.c Sun Dec 19 15:29:29 1999 -@@ -95,6 +95,7 @@ - void status (MAILSTREAM *stream); - void prompt (char *msg,char *txt); - void smtptest (long debug); -+char *safegets(char *buf); - - /* Main program - initialization */ - -@@ -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,"."); -@@ -744,4 +745,18 @@ - else puts ("[Can't open connection to any server]"); - mail_free_envelope (&msg); - mail_free_body (&body); -+} -+ -+char *safegets(char *buf) { -+ char *p; -+ -+ if (!fgets(buf, MAILTMPLEN, stdin)) { -+ return NULL; -+ } -+ -+ if ((p = strchr(buf, '\n')) != NULL) { -+ *p = '\0'; -+ } -+ -+ return buf; - } |