From aa5a6d672fb98c032e1fa1c9a8982cd6cf60e713 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 21 Jul 2019 16:04:35 -0500 Subject: [PATCH] Update: disable BUG_strnlen by default This bug might actually be a bug related to uClibc. Just disable it by default for now. Future versions may remove this workaound entirely. --- level_0/f_strings/c/strings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_0/f_strings/c/strings.h b/level_0/f_strings/c/strings.h index f4df772..a9d4c64 100644 --- a/level_0/f_strings/c/strings.h +++ b/level_0/f_strings/c/strings.h @@ -24,9 +24,9 @@ extern "C" { // BUG: for whatever reason strnlen is considered not included with -Wall, even with __USE_GNU defined // therefore this gets defined here -#ifndef _di_BUG_strnlen_ +#ifdef _en_BUG_strnlen_ f_extern size_t strnlen (f_const char *string, size_t max_length); -#endif // _di_BUG_strnlen_ +#endif // _en_BUG_strnlen_ // Define the end of string character #ifndef _di_f_have_eos_ -- 1.8.3.1