vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 1424202c87bd8c75617c2fd64359d8e261f974d4 parent 3415cc00997a36dd3e7b874bbd020ff948531637 Author: Randy Palamar <randy@rnpnr.xyz> Date: Sat, 18 May 2024 10:52:22 -0600 workaround __builtin_strncpy bounds checking Diffstat:
| M | core/ccan-config.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/ccan-config.c b/core/ccan-config.c @@ -281,7 +281,7 @@ static struct test tests[] = { "#include <string.h>\n" "int main(int argc, char *argv[]) {\n" " char pad[sizeof(int *) * 1];\n" - " strncpy(pad, argv[0], sizeof(pad));\n" + " memcpy(pad, argv[0], sizeof(pad));\n" " return *(int *)(pad) == *(int *)(pad + 1);\n" "}\n" }, { "HAVE_UTIME", DEFINES_FUNC, NULL, NULL,