[740] in Coldmud discussion meeting

root meeting help first previous next last

"E" in "aeiou" bug fixed

daemon@ATHENA.MIT.EDU (Sat May 13 18:50:42 1995 )

Date: Sat, 13 May 1995 16:49:34 -0600
From: 869683 Gillespie Brandon James <brandon@avon.declab.usu.edu>
To: coldstuff@MIT.EDU, coldx@tiny.mcs.usu.edu

The problem was in strcchr, in that it was doing lowercase on the left
side, but not on the right side.  You can fix it by changing the function
in the following way:

(from):
/* Look for c in s, ignoring case. */
char *strcchr(char *s, int c)
{
    for (; *s; s++) {
        if (LCASE(*s) == c)
            return s;
    }
    return (c) ? NULL : s;
}

(to):
/* Look for c in s, ignoring case. */
char *strcchr(char *s, int c)
{
    c = LCASE(c);

    for (; *s; s++) {
        if (LCASE(*s) == c)
            return s;
    }
    return (c) ? NULL : s;
}