From 531ad373b2c22e00a341a6635023cf8949571bd5 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Thu, 22 Aug 2013 23:53:37 +0000 Subject: Moving most of the OS X preferences to auto layout, and all to 10.7. Changing some lists of independent checkbox buttons to matrices. Fix a discrepancy between SDL versions 1.2 and 2.0 APIs in OS X's input preferences. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@86849 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFInput/macsrc/cfg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'macosx/plugins/DFInput/macsrc/cfg.c') diff --git a/macosx/plugins/DFInput/macsrc/cfg.c b/macosx/plugins/DFInput/macsrc/cfg.c index 33013c44..b9d1e7c6 100755 --- a/macosx/plugins/DFInput/macsrc/cfg.c +++ b/macosx/plugins/DFInput/macsrc/cfg.c @@ -17,6 +17,7 @@ */ #include "pad.h" +#include GLOBALDATA g; @@ -114,7 +115,7 @@ static void SetDefaultConfig() { void LoadPADConfig() { FILE *fp; - char buf[256]; + char buf[PATH_MAX]; int current, a, b, c; SetDefaultConfig(); @@ -276,7 +277,7 @@ void LoadPADConfig() { void SavePADConfig() { FILE *fp; int i; - char buf[256]; + char buf[PATH_MAX]; sprintf(buf, "%s/Library/Preferences/net.pcsxr.DFInput.plist", getenv("HOME")); -- cgit v1.2.3