1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

The routine m_atoi in libmh handled filename like [0-9]+~ as regular mail

file, where it should only treat [0-9]+.  This bug was present when mh's
configuration contains locale definition.
Submitted by:	Dave Marquardt <marquard@Zilker.NET>
(Closing PR #2088.)
This commit is contained in:
Masafumi Max NAKANE 1997-01-07 10:12:53 +00:00
parent 5e801915d5
commit 28e0ad9b92
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5250

12
mail/mh/files/patch-ag Normal file
View File

@ -0,0 +1,12 @@
--- sbr/m_atoi.c.orig Wed Dec 1 13:01:23 1993
+++ sbr/m_atoi.c Tue Jan 7 18:53:15 1997
@@ -19,6 +19,9 @@
i *= 10;
i += *cp++ - '0';
}
+ if (*cp) { /* non-digit ended string -- return 0. */
+ return 0;
+ }
#else
while (*cp) {
if (*cp < '0' || *cp > '9')