From dbfae13533117e20add5765cee4e0b822ca6d907 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 2 Dec 2011 01:36:44 +0000 Subject: Use MAXPATHLEN when copying over directory names git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72761 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PluginList.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- cgit v1.2.3