diff options
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r-- | usr.bin/make/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 33719e8..97f4a85 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -928,7 +928,7 @@ ReadMakefile(p, q) } else { /* if we've chdir'd, rebuild the path name */ if (curdir != objdir && *fname != '/') { - (void)sprintf(path, "%s/%s", curdir, fname); + (void)snprintf(path, MAXPATHLEN, "%s/%s", curdir, fname); if ((stream = fopen(path, "r")) != NULL) { fname = path; goto found; |