diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-03-26 12:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 12:53:53 +0100 |
| commit | 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch) | |
| tree | 3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/strerror.c | |
| parent | 9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff) | |
| download | monitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz | |
* Sync with the 202601-stable Gnulib code (4a3650d887)
* Ignore more deps stuff in gnulib
* Remove autogenerated gnulib files
* Ignore more gnulib generated headers
Diffstat (limited to 'gl/strerror.c')
| -rw-r--r-- | gl/strerror.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gl/strerror.c b/gl/strerror.c index 72572ae4..c451f055 100644 --- a/gl/strerror.c +++ b/gl/strerror.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* strerror.c --- POSIX compatible system error routine | 1 | /* strerror.c --- POSIX compatible system error routine |
| 2 | 2 | ||
| 3 | Copyright (C) 2007-2025 Free Software Foundation, Inc. | 3 | Copyright (C) 2007-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -42,7 +42,6 @@ strerror (int n) | |||
| 42 | #undef strerror | 42 | #undef strerror |
| 43 | { | 43 | { |
| 44 | static char buf[STACKBUF_LEN]; | 44 | static char buf[STACKBUF_LEN]; |
| 45 | size_t len; | ||
| 46 | 45 | ||
| 47 | /* Cast away const, due to the historical signature of strerror; | 46 | /* Cast away const, due to the historical signature of strerror; |
| 48 | callers should not be modifying the string. */ | 47 | callers should not be modifying the string. */ |
| @@ -67,7 +66,7 @@ strerror (int n) | |||
| 67 | } | 66 | } |
| 68 | 67 | ||
| 69 | /* Fix STACKBUF_LEN if this ever aborts. */ | 68 | /* Fix STACKBUF_LEN if this ever aborts. */ |
| 70 | len = strlen (msg); | 69 | size_t len = strlen (msg); |
| 71 | if (sizeof buf <= len) | 70 | if (sizeof buf <= len) |
| 72 | abort (); | 71 | abort (); |
| 73 | 72 | ||
