msvc
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@216 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
68e79e3d78
commit
12345525a5
7 changed files with 104 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ void setLastError(const char* fmt, ...) {
|
|||
memset(out, 0, MAX_ERROR_LEN);
|
||||
|
||||
va_start(va, fmt);
|
||||
vsnprintf(out, MAX_ERROR_LEN, fmt, va);
|
||||
vsprintf(out, fmt, va);
|
||||
va_end(va);
|
||||
|
||||
memcpy(error, out, MAX_ERROR_LEN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue