Hi,
please try this one, works for me here, I don't have a Mac OS to test.
---
From: David Sterba <dsterba(a)suse.cz>
strdupa breaks Mac OS build.
Signed-off-by: David Sterba <dsterba(a)suse.cz>
---
sidebar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/sidebar.c b/sidebar.c
index 6eff2f0..0129c96 100644
--- a/sidebar.c
+++ b/sidebar.c
@@ -288,7 +288,7 @@ int draw_sidebar(int menu) {
continue;
}
- safe_path = strdupa(tmp->path);
+ safe_path = strdup(tmp->path);
if ( !safe_path ) {
move( lines, 0 );
lines++;
@@ -296,6 +296,7 @@ int draw_sidebar(int menu) {
}
base_name = basename(safe_path);
+ free(safe_path);
if ( !base_name ) {
move( lines, 0 );
lines++;
--
1.7.6.233.gd79bc