diff --git a/src/dir_common.c b/src/dir_common.c index 234ab9b..ee80c81 100644 --- a/src/dir_common.c +++ b/src/dir_common.c @@ -87,7 +87,7 @@ void dir_setlasterr(const char *path) { lasterrl = req; lasterr = realloc(lasterr, lasterrl); } - strcpy(lasterr, dir_curpath); + strcpy(lasterr, path); }