Skip to content
Snippets Groups Projects
Commit 8e021a46 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

dir_setlasterr: strcpy the right variable

parent b6ddd491
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ void dir_setlasterr(const char *path) { ...@@ -87,7 +87,7 @@ void dir_setlasterr(const char *path) {
lasterrl = req; lasterrl = req;
lasterr = realloc(lasterr, lasterrl); lasterr = realloc(lasterr, lasterrl);
} }
strcpy(lasterr, dir_curpath); strcpy(lasterr, path);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment