Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc/libexec/telnetd



>output_data:
>       ret = vsnprintf(nfrontp, remaining, format, args);
>       nfrontp += ret;
>shouldn't this be:
>               ret = vsnprintf(nfrontp, remaining, format, args);
>       nfrontp += min(ret, remaining-1);

        i guess they are the same on overflow (am I wrong?).  from printf(3):

     These functions return the number of characters printed (not including
     the trailing `\0' used to end output to strings).

itojun



Home | Main Index | Thread Index | Old Index