summaryrefslogtreecommitdiffstats
path: root/mail/popper
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-06-28 22:15:59 +0000
committerache <ache@FreeBSD.org>1998-06-28 22:15:59 +0000
commit45b4b16d0356b4d7c36abf674bf27f6e5ba8d808 (patch)
tree9f47e4c8480db7c0060d1dc953e397b0c798d8ec /mail/popper
parent1504ecae577f21cec9afffd760df6e46827195e3 (diff)
downloadFreeBSD-ports-45b4b16d0356b4d7c36abf674bf27f6e5ba8d808.zip
FreeBSD-ports-45b4b16d0356b4d7c36abf674bf27f6e5ba8d808.tar.gz
Use snprintf now
Diffstat (limited to 'mail/popper')
-rw-r--r--mail/popper/files/patch-aj85
1 files changed, 80 insertions, 5 deletions
diff --git a/mail/popper/files/patch-aj b/mail/popper/files/patch-aj
index 64e28d1..41839cb 100644
--- a/mail/popper/files/patch-aj
+++ b/mail/popper/files/patch-aj
@@ -1,5 +1,39 @@
-*** pop_uidl.c.bak Thu Nov 20 00:20:38 1997
---- pop_uidl.c Mon Jun 29 01:28:01 1998
+*** pop_uidl.c.orig Thu Nov 20 00:20:38 1997
+--- pop_uidl.c Mon Jun 29 02:13:18 1998
+***************
+*** 57,63 ****
+ "Message %d has been marked for deletion.",msg_id));
+ } else {
+
+! sprintf(buffer, "%d %s", msg_id, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+ return (pop_msg (p,POP_SUCCESS, buffer));
+ }
+--- 57,63 ----
+ "Message %d has been marked for deletion.",msg_id));
+ } else {
+
+! snprintf(buffer, sizeof(buffer), "%d %s", msg_id, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+ return (pop_msg (p,POP_SUCCESS, buffer));
+ }
+***************
+*** 73,79 ****
+ /* Is the message flagged for deletion? */
+ if (mp->del_flag) continue;
+
+! sprintf(buffer, "%d %s", x, mp->uidl_str);
+ /* nl = index(mp->uidl_str, NEWLINE); */
+ pop_sendline(p, buffer);
+ /*
+--- 73,79 ----
+ /* Is the message flagged for deletion? */
+ if (mp->del_flag) continue;
+
+! snprintf(buffer, sizeof(buffer), "%d %s", x, mp->uidl_str);
+ /* nl = index(mp->uidl_str, NEWLINE); */
+ pop_sendline(p, buffer);
+ /*
***************
*** 101,107 ****
POP *p;
@@ -9,12 +43,53 @@
fseek(p->drop, mp->offset, 0);
while (fgets(buf, sizeof(buf), p->drop) != NULL) {
---- 101,108 ----
+--- 101,107 ----
POP *p;
MsgInfoList *mp;
{
-! /* prevent overflow in pop_euidl */
-! static char buf[MAXLINELEN - 128], *cp;
+! static char buf[MAXLINELEN], *cp;
fseek(p->drop, mp->offset, 0);
while (fgets(buf, sizeof(buf), p->drop) != NULL) {
+***************
+*** 150,158 ****
+ "Message %d has been marked for deletion.",msg_id));
+ } else {
+
+! sprintf(buffer, "%d %s", msg_id, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+! sprintf(buffer, "%s %d %s", buffer, mp->length, from_hdr(p, mp));
+ return (pop_msg (p,POP_SUCCESS, buffer));
+ }
+ } else {
+--- 150,158 ----
+ "Message %d has been marked for deletion.",msg_id));
+ } else {
+
+! snprintf(buffer, sizeof(buffer), "%d %s", msg_id, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+! snprintf(buffer, sizeof(buffer), "%s %d %s", buffer, mp->length, from_hdr(p, mp));
+ return (pop_msg (p,POP_SUCCESS, buffer));
+ }
+ } else {
+***************
+*** 167,175 ****
+ /* Is the message flagged for deletion? */
+ if (mp->del_flag) continue;
+
+! sprintf(buffer, "%d %s", x, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+! sprintf(buffer, "%s %d %s", buffer, mp->length, from_hdr(p, mp));
+ pop_sendline(p, buffer);
+ }
+ }
+--- 167,175 ----
+ /* Is the message flagged for deletion? */
+ if (mp->del_flag) continue;
+
+! snprintf(buffer, sizeof(buffer), "%d %s", x, mp->uidl_str);
+ if (nl = index(buffer, NEWLINE)) *nl = 0;
+! snprintf(buffer, sizeof(buffer), "%s %d %s", buffer, mp->length, from_hdr(p, mp));
+ pop_sendline(p, buffer);
+ }
+ }
OpenPOWER on IntegriCloud