Skip to content

Commit

Permalink
xrCore/xrstring: _vsnprintf -> xr_sprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent 13d7972 commit e8f6029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xrCore/xrstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define xrstringH
#pragma once

#include "_std_extensions.h"

#pragma pack(push,4)
//////////////////////////////////////////////////////////////////////////
typedef const char* str_c;
Expand Down Expand Up @@ -94,7 +96,7 @@ class shared_str
string4096 buf;
va_list p;
va_start(p, format);
int vs_sz = _vsnprintf(buf, sizeof(buf) - 1, format, p);
int vs_sz = xr_sprintf(buf, sizeof(buf) - 1, format, p);
buf[sizeof(buf) - 1] = 0;
va_end(p);
if (vs_sz) _set(buf);
Expand Down

0 comments on commit e8f6029

Please sign in to comment.