diff options
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c index c1dd602..71f10f9 100644 --- a/src/build.c +++ b/src/build.c @@ -322,9 +322,9 @@ static char *get_relpath(const char *target) { if (!abstarget) fatal("redo: failed to get realpath() of %s", target); - char *relpath = xstrdup(make_relative(root, abstarget)); + char *path = xstrdup(relpath(abstarget, root)); free(abstarget); - return relpath; + return path; } /* Return the dependency file path of target. */ |