summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFInput/macsrc/cfg.c
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 23:53:37 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-08-22 23:53:37 +0000
commit531ad373b2c22e00a341a6635023cf8949571bd5 (patch)
tree029961f0aa19ec396f6d7cc09f3ff93987c9aa62 /macosx/plugins/DFInput/macsrc/cfg.c
parent9628a367530657e7fefb17be0a125dbe3f5d7614 (diff)
downloadpcsxr-531ad373b2c22e00a341a6635023cf8949571bd5.tar.gz
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
Diffstat (limited to 'macosx/plugins/DFInput/macsrc/cfg.c')
-rwxr-xr-xmacosx/plugins/DFInput/macsrc/cfg.c5
1 files changed, 3 insertions, 2 deletions
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 <sys/param.h>
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"));