aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJoost Peters2010-10-10 22:36:03 +0000
committerJoost Peters2010-10-10 22:36:03 +0000
commit426d6749cf534dec673e958f98711ac64a04f9a6 (patch)
treedd09f995510107a8639a1d350048be3f3139497f /graphics
parent96e19382b97846e9faeccba46bf1300a6fc06baa (diff)
downloadscummvm-rg350-426d6749cf534dec673e958f98711ac64a04f9a6.tar.gz
scummvm-rg350-426d6749cf534dec673e958f98711ac64a04f9a6.tar.bz2
scummvm-rg350-426d6749cf534dec673e958f98711ac64a04f9a6.zip
COMMON: work around different vsnprintf behaviour on IRIX
The return value of vsnprintf when the provided buffer is not large enough to hold the formatted string is implementation-dependent: C99: The size the formatted string would take up. MSVC: -1, with no indication of how large the buffer should be. IRIX: The number of characters actually written, which is at most the size of the buffer minus one, as the string is truncated to fit. This means the only way to be sure the entire string is written is if the return value is less than the capacity - 1. This change means that whenever we try to format a string where the size is 1 below the built-in capacity, that the capacity will be needlessly increased. If this turns out to be problematic we could make this behaviour __sgi conditional. svn-id: r53143
Diffstat (limited to 'graphics')
0 files changed, 0 insertions, 0 deletions