Subject: Re: [PATCH] Add compat/vsnprintf.c for systems that returns -1 on maxsize reached

From: Johannes Sixt <[email-masked]>
Date: Mon, 10 Mar 2008 10:28:53 +0100

Michal Rokos schrieb:
> Hello,
> 
> I've managed to run testcase on
> Tru64 OSF1 <hostname> V5.1 2650 alpha
> and it returns
> case1: 0
> case2: 4
> case3: 5
> case4: 5
> which is sad since our vsnprintf() cannot detect this ill behaviour.

Ugh! We'd need to run the loop until we get a return value that is not
negative and less than the size specified...

-- Hannes