X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpicksbr.c;h=1154f46c50b947a6a1b2d81d635cc253927df312;hp=3d4e97820f606c21162c868065dcda77e580839f;hb=5ff96d61ee5af34956ae958a0bc72ee78734a4d7;hpb=193489472a436a4437498b448e11e8992baaaf67 diff --git a/uip/picksbr.c b/uip/picksbr.c index 3d4e978..1154f46 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -3,11 +3,16 @@ * picksbr.c -- routines to help pick along... * * $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 -#include +#include #include +#include #ifdef TIME_WITH_SYS_TIME # include @@ -690,7 +695,7 @@ plist if (*p2 == CCHR) { c = p2[1]; do { - if (*p1 == c || cc[(int)*p1] == c) + if (*p1 == c || cc[(unsigned char)*p1] == c) if (advance (p1, p2)) return 1; } while (*p1++); @@ -715,7 +720,7 @@ advance (char *alp, char *aep) for (;;) switch (*ep++) { case CCHR: - if (*ep++ == *lp++ || ep[-1] == cc[(int)lp[-1]]) + if (*ep++ == *lp++ || ep[-1] == cc[(unsigned char)lp[-1]]) continue; return 0; @@ -754,7 +759,7 @@ advance (char *alp, char *aep) case CCHR | STAR: curlp = lp; - while (*lp++ == *ep || cc[(int)lp[-1]] == *ep) + while (*lp++ == *ep || cc[(unsigned char)lp[-1]] == *ep) continue; ep++; goto star;