summaryrefslogtreecommitdiffstats
path: root/src/lib/portmidi/readbinaryplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/portmidi/readbinaryplist.c')
-rw-r--r--src/lib/portmidi/readbinaryplist.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/lib/portmidi/readbinaryplist.c b/src/lib/portmidi/readbinaryplist.c
index 7f94270d86c..cd9beb02bb6 100644
--- a/src/lib/portmidi/readbinaryplist.c
+++ b/src/lib/portmidi/readbinaryplist.c
@@ -384,23 +384,23 @@ value_ptr bplist_read_file(char *filename)
#ifdef OSX_PPC
value_ptr bplist_read_pref(char *filename, OSType folder_type)
{
- FSRef prefdir;
- char cstr[MAXPATHLEN];
-
- OSErr err = FSFindFolder(kOnAppropriateDisk, folder_type,
- FALSE, &prefdir);
- if (err) {
- bplist_log("Error finding preferences folder: %d\n", err);
- return NULL;
- }
- err = FSRefMakePath(&prefdir, (UInt8 *) cstr, (UInt32) (MAXPATHLEN - 1));
- if (err) {
- bplist_log("Error making path name for preferences folder: %d\n", err);
- return NULL;
- }
- strlcat(cstr, "/", MAXPATHLEN);
- strlcat(cstr, filename, MAXPATHLEN);
- return bplist_read_file(cstr);
+ FSRef prefdir;
+ char cstr[MAXPATHLEN];
+
+ OSErr err = FSFindFolder(kOnAppropriateDisk, folder_type,
+ FALSE, &prefdir);
+ if (err) {
+ bplist_log("Error finding preferences folder: %d\n", err);
+ return NULL;
+ }
+ err = FSRefMakePath(&prefdir, (UInt8 *) cstr, (UInt32) (MAXPATHLEN - 1));
+ if (err) {
+ bplist_log("Error making path name for preferences folder: %d\n", err);
+ return NULL;
+ }
+ strlcat(cstr, "/", MAXPATHLEN);
+ strlcat(cstr, filename, MAXPATHLEN);
+ return bplist_read_file(cstr);
}
#else
value_ptr bplist_read_pref(char *filename, OSType folder_type)