openbsd-ports/mail/asmail/patches/patch-pop_c
2003-06-17 00:27:46 +00:00

55 lines
1.4 KiB
Plaintext

--- pop.c.orig
+++ pop.c
@@ -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 @@
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 @@
/* 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 @@
/* 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.