Skip to content

Commit e6a304f

Browse files
author
nitrocaster
committed
Replace misused xr_sprintf -> vsnprintf.
1 parent 4898eba commit e6a304f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/xrstring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class shared_str
9696
string4096 buf;
9797
va_list p;
9898
va_start(p, format);
99-
int vs_sz = xr_sprintf(buf, sizeof(buf) - 1, format, p);
99+
int vs_sz = vsnprintf(buf, sizeof(buf) - 1, format, p);
100100
buf[sizeof(buf) - 1] = 0;
101101
va_end(p);
102102
if (vs_sz) _set(buf);

0 commit comments

Comments
 (0)