From fdd7f095c8618e85e31612b8141e4283d1f3b023 Mon Sep 17 00:00:00 2001 From: a bellenir Date: Sat, 26 Jul 2014 00:55:04 +0000 Subject: [PATCH] use getcwd instead of get_current_dir_name --- source/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/screen.c b/source/screen.c index 98ecd40..0fa9f78 100644 --- a/source/screen.c +++ b/source/screen.c @@ -106,7 +106,7 @@ static void screen_place_windows(void) { static frame_t* screen_frame_new(void) { frame_t* p_frame = (frame_t*)mem_allocate(sizeof(frame_t),&screen_frame_free); p_frame->p_win = newwin(1, 1, 0, 0); - char* path = state_get_focused_frame() ? state_get_focused_frame()->workdir->path : get_current_dir_name(); + char* path = state_get_focused_frame() ? state_get_focused_frame()->workdir->path : getcwd(NULL, 0); p_frame->workdir = workdir_new(path); return p_frame; } -- 2.52.0