aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-09 15:42:43 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-09 22:00:29 +0200
commit7149995536739b984a2a832f8ee725e9de3832dc (patch)
treeb40821326381efdfb117a72bfaa7493bb97abcdd
parenta833f7029616579ecf0457ca98f5705b8f915fe0 (diff)
downloadbuild-7149995536739b984a2a832f8ee725e9de3832dc.tar.gz
Print current file, not first file
-rw-r--r--build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.c b/build.c
index 912dc97..b98ac6b 100644
--- a/build.c
+++ b/build.c
@@ -149,7 +149,7 @@ main(int argc, char *argv[])
if (errno != ENOENT)
err(1, d);
fprintf(stderr, "%s: dependency %s does not "
- "exist\n", argv[0], d);
+ "exist\n", argv[i], d);
continue;
}
if (sb.st_mtime > ssb.st_mtime) {