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

Re: more improvements for mg



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