diff options
Diffstat (limited to 'libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch')
-rw-r--r-- | libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch b/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch deleted file mode 100644 index 663ca267d6..0000000000 --- a/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 487924cda8c6c1a5360e15d4858432d676069f1b Mon Sep 17 00:00:00 2001 -From: pedro martelletto <pedro@yubico.com> -Date: Sun, 4 Apr 2021 10:41:24 +0200 -Subject: [PATCH] log: explicit truncation to placate gcc; gh#318 - ---- - src/log.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/log.c b/src/log.c -index 3d603c2a..ab18ae12 100644 ---- a/src/log.c -+++ b/src/log.c -@@ -33,14 +33,14 @@ log_on_stderr(const char *str) - static void - do_log(const char *suffix, const char *fmt, va_list args) - { -- char line[LINELEN], body[LINELEN - 3]; -+ char line[LINELEN], body[LINELEN]; - - vsnprintf(body, sizeof(body), fmt, args); - - if (suffix != NULL) -- snprintf(line, sizeof(line), "%s: %s\n", body, suffix); -+ snprintf(line, sizeof(line), "%.180s: %.70s\n", body, suffix); - else -- snprintf(line, sizeof(line), "%s\n", body); -+ snprintf(line, sizeof(line), "%.180s\n", body); - - log_handler(line); - } |