[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more improvements for mg
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: more improvements for mg
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Mon, 16 May 2005 10:58:17 +0200
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org
Theo de Raadt wrote:
> snprintf does not return size_t
sizeof returns size_t
size_t ret;
ret = snprintf(...);
if ((int)ret == -1 || ret >= sizeof(file))
...
So if this is not right according to you, what is? Why did you
provide a broken example in the first place? Why didn't you reply
when I pointed that out you? Why do you always send me emails on
every minor discrepancy but don't you bother explaining how to do
it right?
# Han
Visit your host, monkey.org