Module Name: src
Committed By: rillig
Date: Mon Oct 5 22:45:47 UTC 2020
Modified Files:
src/usr.bin/make: dir.c dir.h main.c
Log Message:
make(1): remove pathname limit for Dir_FindHereOrAbove
While trying to compile the code with GCC's -Wformat-truncation, the
snprintf calls felt quite complicated. The function Dir_FindHereOrAbove
is not in a bottleneck execution path, therefore it doesn't hurt to
dynamically allocate the memory instead of using size-limited stack
memory.
To generate a diff of this commit:
cvs rdiff -u -r1.160 -r1.161 src/usr.bin/make/dir.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/make/dir.h
cvs rdiff -u -r1.370 -r1.371 src/usr.bin/make/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.