From 5e8c74d7d63a6f6645692269eae905842e9a74e3 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 19 May 2022 15:47:51 -0500 Subject: [PATCH] Ubuntu enables gcc's "fortify" false positive generator by default, which broke the build. --- lib/portability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/portability.h b/lib/portability.h index cefc3a37..2bd1c124 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -297,7 +297,7 @@ pid_t xfork(void); // There are occasions to use it, but it is NOT A GENERAL PURPOSE FUNCTION. // #define strncpy(...) @@strncpyisbadmmkay@@ // strncat writes a null terminator one byte PAST the buffer size it's given. -#define strncat(...) strncatisbadmmkay +#define strncat(...) strncatisbadmmkay(__VA_ARGS__) // Support building the Android tools on glibc, so hermetic AOSP builds can // use toybox before they're ready to switch to host bionic. -- 2.39.2