@@ -61,8 +61,8 @@ IC int xr_sprintf(char* dest, size_t sizeOfBuffer, const char* format, ...)
6161#if defined(LINUX)
6262IC int vsnprintf_s (char * buffer, size_t size, size_t count, const char * format, va_list list)
6363{
64- // TODO add bound check
65- return vsnprintf (buffer, size, format, list);
64+ // TODO add bound check
65+ return vsnprintf (buffer, size, format, list);
6666}
6767#endif
6868
@@ -216,11 +216,21 @@ inline int __cdecl xr_sprintf(char (&destination)[count], LPCSTR format_string,
216216}
217217#else // #ifndef MASTER_GOLD
218218
219+ inline int xr_strcpy (LPSTR destination, LPCSTR source)
220+ {
221+ return strcpy (destination, source);
222+ }
223+
219224inline int xr_strcpy (LPSTR destination, size_t const destination_size, LPCSTR source)
220225{
221226 return strncpy_s (destination, destination_size, source, destination_size);
222227}
223228
229+ inline int xr_strcat (LPSTR destination, LPCSTR source)
230+ {
231+ return strcat (destination, source);
232+ }
233+
224234inline int xr_strcat (LPSTR destination, size_t const buffer_size, LPCSTR source)
225235{
226236 size_t const destination_length = xr_strlen (destination);
0 commit comments