$NetBSD: patch-ab,v 1.1.1.1 2005/03/27 13:08:45 jmmv Exp $ --- src/options.c.orig 2001-05-04 15:36:12.000000000 +0200 +++ src/options.c @@ -50,7 +50,7 @@ int options_initialize(opt_s *opt) { opt->command_history_size = 20 ; opt->file_history_size = 5 ; - opt->wdir = my_strdup(getenv("PWD")) ; + opt->wdir = getcwd(NULL, 0); opt->wdir = realloc(opt->wdir, strlen(opt->wdir) + 2000) ; strcat(opt->wdir, "/") ;