Subject: Re: CVS commit: basesrc/libexec/telnetd
To: Assar Westerlund <assar@netbsd.org>
From: None <itojun@iijlab.net>
List: source-changes
Date: 07/20/2001 00:31:00
>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