dir_setlasterr: strcpy the right variable

This commit is contained in:
Martin Storsjö 2019-02-18 14:09:13 +02:00
parent b6ddd491b3
commit 8e021a46ee

View file

@ -87,7 +87,7 @@ void dir_setlasterr(const char *path) {
lasterrl = req;
lasterr = realloc(lasterr, lasterrl);
}
strcpy(lasterr, dir_curpath);
strcpy(lasterr, path);
}