aboutsummaryrefslogtreecommitdiff
path: root/audio/cmp3/files/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmp3/files/patch-ae')
-rw-r--r--audio/cmp3/files/patch-ae22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/cmp3/files/patch-ae b/audio/cmp3/files/patch-ae
new file mode 100644
index 000000000000..a97c5c17af3f
--- /dev/null
+++ b/audio/cmp3/files/patch-ae
@@ -0,0 +1,22 @@
+--- cmp3main.c.orig Fri Mar 17 08:40:00 2000
++++ cmp3main.c Fri Jan 12 02:16:41 2001
+@@ -33,13 +33,18 @@
+ int lastleftline = 0;
+ int lastrightline = 0;
+ char *init_dir = NULL;
++ char *home_dir = NULL;
++ char cmp3_config[4096];
+
+ if (argc > 1)
+ docmdline(argc, argv);
+ shm_init();
+
+ cmp3rc = ini_create();
+- if (ini_load(cmp3rc, CMP3_CONFIG) == INI_FAIL)
++ home_dir = getenv("HOME");
++ strcpy (cmp3_config, home_dir);
++ strcat (cmp3_config, "/.cmp3rc");
++ if (ini_load(cmp3rc, cmp3_config) == INI_FAIL)
+ {
+ ini_destroy(cmp3rc);
+ cmp3rc = NULL;