Use system-wide Wine, DXVK & D9VK for Steam Play/Proton (Windows) games directly from Linux Steam client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
726 B

5 years ago
  1. From 0fa21ba17748efcca1816536e27bdca70141b074 Mon Sep 17 00:00:00 2001
  2. From: Christoph Haag <haagch@frickel.club>
  3. Date: Tue, 25 Jul 2017 02:07:09 +0200
  4. Subject: [PATCH] Use correct definition for vsprintf_s
  5. defining it to sprintf actually segfaults in a release build.
  6. ---
  7. samples/shared/compat.h | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/samples/shared/compat.h b/samples/shared/compat.h
  10. index 154f8b0..28002d9 100644
  11. --- a/samples/shared/compat.h
  12. +++ b/samples/shared/compat.h
  13. @@ -12,7 +12,7 @@
  14. #include <unistd.h>
  15. #define sprintf_s snprintf
  16. -#define vsprintf_s sprintf
  17. +#define vsprintf_s vsprintf
  18. #define _stricmp strcmp
  19. #define stricmp strcmp
  20. #define strnicmp strncasecmp