openbsd-ports/mail/asmail/patches/patch-pop_c
jasper 24a0fea2d5 - add missing license comment
- regen WANTLIB/PLIST/PATCHES
- use SUBST_CMD

from gleydson soares
2011-04-25 12:39:31 +00:00

55 lines
1.6 KiB
Plaintext

--- pop.c.orig Thu Apr 13 07:08:02 2000
+++ pop.c Sun Apr 24 22:44:14 2011
@@ -38,7 +38,7 @@
case 0: /* Timeout */ \
return -1; \
} \
- sscanf(input, "%5s", strg); \
+ sscanf(input, "%4s", strg); \
if (strcmp(strg, ACK_MSG) != 0) \
return -1; \
}
@@ -170,7 +170,7 @@ int pop3(int sd, int *nm, int *om, char *user, char *p
case 0: /* Timeout */
return -1;
}
- sscanf(input, "%5s", strg);
+ sscanf(input, "%4s", strg);
if (strcmp(strg, ACK_MSG) == 0) {
/* LIST works */
pnt = input + strlen(strg) + 1;
@@ -210,21 +210,21 @@ int pop(char *string, int *nmail, int *oldmail)
/* Parse the string */
/* Servername */
pnt = string + 2;
- if (sscanf(pnt, "%100s", server) != 1) {
+ if (sscanf(pnt, "%99s", server) != 1) {
InDuty = 0;
return -1;
}
/* Username */
pnt += strlen(server) + 1;
- if (sscanf(pnt, "%100s", user) != 1) {
+ if (sscanf(pnt, "%99s", user) != 1) {
InDuty = 0;
return -1;
}
/* Password */
pnt += strlen(user) + 1;
- if (sscanf(pnt, "%100s", password) != 1) {
+ if (sscanf(pnt, "%99s", password) != 1) {
InDuty = 0;
return -1;
}
@@ -239,7 +239,7 @@ int pop(char *string, int *nmail, int *oldmail)
/* optional mailboxname for IMAP */
if (type == TYPE_IMAP)
- if (sscanf(pnt, "%100s", &mailbox) != 1)
+ if (sscanf(pnt, "%99s", mailbox) != 1)
strcpy(mailbox, "INBOX");
/* Feb. 17 2000: Removed toupper() of mailbox names.