Hello.

The user Mr. Russell Bell reported an error that seems to be in
the BSD Mail codebase since BSD 8.1[.1] from 1996.
The "O" is not really optional, but the next character seems to
become checked against the "0" (which must follow) anyway.
Instead a following digit needs to be consumed, and the "0" in the
template that follows needs to be consumed anyway.
I think the resulting snippet from MUA is somewhat correct:

      case 'O':
         if(!digitchar(dc) && dc != ' ')
               goto jleave;
         tc = *tp++; /* is "0"! */
         dc = *date;
         if(digitchar(dc))
            ++date;
         break;

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to