Branimir Karadžić 9 anni fa
parent
commit
842e6edbce
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      include/bx/os.h

+ 5 - 0
include/bx/os.h

@@ -242,6 +242,11 @@ namespace bx
 			len = (uint32_t)strlen(ptr);
 		}
 		bool result = len != 0 && len < *_inOutSize;
+		if (len < *_inOutSize)
+		{
+			strcpy(_out, ptr);
+		}
+
 		*_inOutSize = len;
 		return result;
 #endif // BX_PLATFORM_