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

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