commit d22a319dfd47a4c2a22df571ca31155fa852ebfb parent f10cba432afce3f595227d2a6d8ad207ebca737a Author: Kyle Milz <kyle@0x30.net> Date: Fri, 6 Jan 2017 19:06:52 -0700 lib: use strncpy to appease the openbsd linker Diffstat:
M | lib.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib.c b/lib.c @@ -243,7 +243,7 @@ add_header() #endif /* _WIN32 */ if (getcwd(header->cwd, sizeof(header->cwd)) == NULL) - strcpy(header->cwd, ""); + strncpy(header->cwd, "", 3); atexit(set_exited); }