diff options
author | Martin Storsjö <martin@martin.st> | 2019-02-18 14:09:13 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2019-02-18 23:50:17 +0200 |
commit | 8e021a46ee2d455c8c677a7eb982b56c3c408942 (patch) | |
tree | cd5a707e2834a4c00eb0e9d5517728976d917ed8 | |
parent | b6ddd491b3a0d241ac72f06ec171d7f13890d615 (diff) |
dir_setlasterr: strcpy the right variable
-rw-r--r-- | src/dir_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |