diff options
author | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2009-09-20 17:17:09 +0000 |
---|---|---|
committer | Felippe de Meirelles Motta <lippe@FreeBSD.org> | 2009-09-20 17:17:09 +0000 |
commit | 03222431d093a975f711824adb2d91285c157e2d (patch) | |
tree | d6ca8a32df1e4ba681e46278b7fccc2b7516da8e /audio/cmp3/files/patch-cmp3main.c | |
parent | Update to 0.25. (diff) |
- Pass maintainership to submitter.
- Make portlint happy.
PR: ports/138993
Submitted by: Sylvio Cesar <scjamorim@bsd.com.br>
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=241825
Diffstat (limited to 'audio/cmp3/files/patch-cmp3main.c')
-rw-r--r-- | audio/cmp3/files/patch-cmp3main.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/cmp3/files/patch-cmp3main.c b/audio/cmp3/files/patch-cmp3main.c new file mode 100644 index 000000000000..dc0f0748a58d --- /dev/null +++ b/audio/cmp3/files/patch-cmp3main.c @@ -0,0 +1,22 @@ +--- cmp3main.c.orig 2001-07-07 16:17:23.000000000 -0300 ++++ cmp3main.c 2009-09-20 11:11:06.000000000 -0300 +@@ -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; |