gcc fix
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@258 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c6e143aba7
commit
79f4f270a5
2 changed files with 9 additions and 0 deletions
|
@ -316,7 +316,11 @@ private:
|
|||
}
|
||||
memcpy(fmtBuf, fmt, (format_ - fmt) * sizeof(Char));
|
||||
fmtBuf[format_ - fmt] = 0;
|
||||
#ifdef _MSC_VER
|
||||
const int stored = _snprintf(resultBuf,
|
||||
#else
|
||||
const int stored = snprintf(resultBuf,
|
||||
#endif
|
||||
sizeof(resultBuf) / sizeof(Char), fmtBuf, n);
|
||||
if (stored < 0) {
|
||||
result_ = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue