commit 010fd7349f3e3baeeea0344175cd351dd4692904
parent 53efcfa08238d8cd1d7b0db2a936a7a9f43c486e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 11 Oct 2024 17:12:16 +0200
Merge remote-tracking branch 'origin/master'
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/build/host/obsd.mk b/scripts/build/host/obsd.mk
@@ -1,4 +1,4 @@
DRIVER = posix
-HOST_CPPFLAGS = -D_ISOC99_SOURCE -D_ANSI_SOURCE
+HOST_CPPFLAGS = -D_ISOC99_SOURCE
HOSTCC = clang
diff --git a/src/cmd/cc/cc1/expr.c b/src/cmd/cc/cc1/expr.c
@@ -665,7 +665,7 @@ adjstrings(Symbol *sym)
s = xrealloc(s, len + n);
memcpy(s + len - 1, t, n);
- s[len + n] = '\0';
+ s[len + n - 1] = '\0';
}
if (tp->n.elem != len) {