openbsd-ports/mail/xfmail/patches/patch-src_mail_uucode_cpp
avsm 9172f424be plug some off-by-ones in various bits of mail and ui
submitted upstream, PKGNAME bumped
2003-06-20 12:01:55 +00:00

13 lines
466 B
Plaintext

$OpenBSD: patch-src_mail_uucode_cpp,v 1.1 2003/06/20 12:01:55 avsm Exp $
--- src/mail/uucode.cpp.orig Fri Jun 20 12:47:16 2003
+++ src/mail/uucode.cpp Fri Jun 20 12:48:05 2003
@@ -261,7 +261,7 @@ UUDecode::getNextFileName(void)
return NULL;
} while (strncmp(buf, "begin ", 6) != 0);
- sscanf(buf, "begin %o %1024s", &mode, path);
+ sscanf(buf, "begin %o %1023s", &mode, path);
path[sizeof(buf) - 1] = '\0';
if (mode == -1 || strlen(path) == 0) {