plug a number of off-by-one errors, and a dodgy sscanf argument typo
submitted upstream, PKGNAME bumped
This commit is contained in:
parent
41e9bd5c55
commit
515563331b
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.19 2003/03/31 14:20:03 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.20 2003/06/17 00:27:46 avsm Exp $
|
||||
|
||||
COMMENT= "biff-type program, designed to match AfterStep"
|
||||
|
||||
DISTNAME= asmail-0.56
|
||||
PKGNAME= asmail-0.56p1
|
||||
CATEGORIES= mail
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asmail/} \
|
||||
|
54
mail/asmail/patches/patch-pop_c
Normal file
54
mail/asmail/patches/patch-pop_c
Normal file
@ -0,0 +1,54 @@
|
||||
--- 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.
|
Loading…
Reference in New Issue
Block a user