From: a bellenir Date: Sat, 26 Jul 2014 00:55:04 +0000 (+0000) Subject: use getcwd instead of get_current_dir_name X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=fdd7f095c8618e85e31612b8141e4283d1f3b023;p=archive%2Fafm.git use getcwd instead of get_current_dir_name --- 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; }