diff options
Diffstat (limited to 'audio/xmmsctrl/files/patch-removefile.c')
-rw-r--r-- | audio/xmmsctrl/files/patch-removefile.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/audio/xmmsctrl/files/patch-removefile.c b/audio/xmmsctrl/files/patch-removefile.c new file mode 100644 index 000000000000..b99afb9fdb1e --- /dev/null +++ b/audio/xmmsctrl/files/patch-removefile.c @@ -0,0 +1,20 @@ +--- removefile.c.orig Thu Apr 1 08:26:19 2004 ++++ removefile.c Thu Sep 22 13:41:04 2005 +@@ -111,7 +111,7 @@ + DIR *dir = opendir("."); + if (dir) { + /* xmms uses absolute paths */ +- char *pwd = get_current_dir_name(); ++ char *pwd = getcwd(NULL,PATH_MAX); + struct dirent *entry; + struct stat file_stat; + +@@ -189,7 +189,7 @@ + gint *remove_pos = (gint*) malloc(list_size*sizeof(gint)); + + if (remove_pos) { +- char *pwd = get_current_dir_name(); ++ char *pwd = getcwd(NULL,PATH_MAX); + int root_len = strlen(pwd)+1; /* +1: jump appended / */ + gint i; + |