It looks strange in qmail-local.c as of qmail 1.03

line 648 in qmail-local.c  is written
     while ((k > i) && (cmds.s[k - 1] == ' ') || (cmds.s[k - 1] ==
'\t'))
       cmds.s[--k] = 0;


Because && has higher precedence than ||,
I suppose that was meant to be written was

    while ((k > i) && ((cmds.s[k - 1] == ' ') || (cmds.s[k - 1] ==
'\t')))
       cmds.s[--k] = 0;

this could lead to strange behaviour for a  .qmail starting
with just tabs followed by a newline. As  strange behaviour I
mean referencing the array with index -1

Sorry if I'm mistaken, please correct me if I'm wrong

thanks & regards
Erik Sjoelund









Reply via email to