]> diplodocus.org Git - nmh/blobdiff - sbr/m_atoi.c
Fixed removal of <> in test-dist and test-rcvdist.
[nmh] / sbr / m_atoi.c
index 221ff0cadfc41add3833a4205ac28a21265e8fad..f05271f7102d0e0f09b0009bdea263f5433be37d 100644 (file)
@@ -4,8 +4,6 @@
  *          -- return the numeric value of the message.  If the string
  *          -- contains any non-digit characters, then return 0.
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
@@ -22,7 +20,7 @@ m_atoi (char *str)
 
     for (i = 0, cp = str; *cp; cp++) {
 #ifdef LOCALE
-       if (!isdigit(*cp))
+       if (!isdigit((unsigned char) *cp))
 #else
        if (*cp < '0' || *cp > '9')
 #endif