X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_convert.c;h=c88747f09e0de9008adf99e2316b1351a605f726;hb=d63aff26a21021822af6cfa3fbacc572f2b6869f;hp=e9a5d1887d02adc4d41c20bce1b5a74895e30281;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/m_convert.c b/sbr/m_convert.c index e9a5d18..c88747f 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -2,7 +2,9 @@ /* * m_convert.c -- parse a message range or sequence and set SELECTED * - * $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. */ #include @@ -36,7 +38,8 @@ int m_convert (struct msgs *mp, char *name) { int first, last, found, range, err; - char *bp, *cp; + unsigned char *bp; + char *cp; /* check if user defined sequence */ err = attr (mp, cp = name); @@ -221,7 +224,7 @@ single: /* * Convert the various message names to - * there numeric value. + * their numeric values. * * n (integer) * prev @@ -236,8 +239,8 @@ static int m_conv (struct msgs *mp, char *str, int call) { register int i; - register char *cp, *bp; - char buf[16]; + register unsigned char *cp, *bp; + unsigned char buf[16]; convdir = 1; cp = bp = str; @@ -260,10 +263,10 @@ m_conv (struct msgs *mp, char *str, int call) #ifdef LOCALE /* doesn't enforce lower case */ for (bp = buf; (isalpha(*cp) || *cp == '.') - && (bp - buf < sizeof(buf) - 1); ) + && (bp - buf < (int) sizeof(buf) - 1); ) #else for (bp = buf; ((*cp >= 'a' && *cp <= 'z') || *cp == '.') - && (bp - buf < sizeof(buf) - 1); ) + && (bp - buf < (int) sizeof(buf) - 1); ) #endif /* LOCALE */ { *bp++ = *cp++; @@ -322,7 +325,7 @@ m_conv (struct msgs *mp, char *str, int call) static int attr (struct msgs *mp, char *cp) { - register char *dp; + register unsigned char *dp; char *bp = NULL; register int i, j; int found,