From: Kevin Day Date: Sun, 21 Jul 2019 21:04:35 +0000 (-0500) Subject: Update: disable BUG_strnlen by default X-Git-Tag: 0.4.3~23 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=f5750d0144aa93455d5203a58fa7a17447e91f74;p=fll 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. --- diff --git a/level_0/f_strings/c/strings.h b/level_0/f_strings/c/strings.h index 036fe5d..46a03f8 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 (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_