summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-02 01:36:44 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2011-12-02 01:36:44 +0000
commitdbfae13533117e20add5765cee4e0b822ca6d907 (patch)
tree42ee5482cbdbfc0c2931375bb9eb5869fb25e5c3
parent7543dd040587a650556a60240b8f383d84bc3402 (diff)
downloadpcsxr-dbfae13533117e20add5765cee4e0b822ca6d907.tar.gz
Use MAXPATHLEN when copying over directory names
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72761 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--macosx/PluginList.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/PluginList.m b/macosx/PluginList.m
index b5b61b5c..ba006a50 100644
--- a/macosx/PluginList.m
+++ b/macosx/PluginList.m
@@ -310,7 +310,7 @@ const static int typeList[5] = {PSE_LT_GPU, PSE_LT_SPU, PSE_LT_CDR, PSE_LT_PAD,
char **dst = [PcsxrPlugin configEntriesForType:type];
while (*dst) {
- strncpy(*dst, str, 255);
+ strncpy(*dst, str, MAXPATHLEN);
dst++;
}