diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2026-03-27 11:14:20 +0100 |
| commit | 1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch) | |
| tree | d69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/vsnzprintf.c | |
| parent | 99283972fe3a74d3a1dea12c4099f76286130a67 (diff) | |
| parent | a71ce153082565e5728424749475593dc0623492 (diff) | |
| download | monitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz | |
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/vsnzprintf.c')
| -rw-r--r-- | gl/vsnzprintf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gl/vsnzprintf.c b/gl/vsnzprintf.c index f6e6b1d4..0d35195f 100644 --- a/gl/vsnzprintf.c +++ b/gl/vsnzprintf.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Formatted output to strings. | 1 | /* Formatted output to strings. |
| 2 | Copyright (C) 2004, 2006-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 2004, 2006-2026 Free Software Foundation, Inc. |
| 3 | Written by Simon Josefsson and Yoann Vandoorselaere <yoann@prelude-ids.org>. | 3 | Written by Simon Josefsson and Yoann Vandoorselaere <yoann@prelude-ids.org>. |
| 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 |
| @@ -33,12 +33,9 @@ | |||
| 33 | ptrdiff_t | 33 | ptrdiff_t |
| 34 | vsnzprintf (char *str, size_t size, const char *format, va_list args) | 34 | vsnzprintf (char *str, size_t size, const char *format, va_list args) |
| 35 | { | 35 | { |
| 36 | char *output; | ||
| 37 | size_t len; | ||
| 38 | size_t lenbuf = size; | 36 | size_t lenbuf = size; |
| 39 | 37 | char *output = vasnprintf (str, &lenbuf, format, args); | |
| 40 | output = vasnprintf (str, &lenbuf, format, args); | 38 | size_t len = lenbuf; |
| 41 | len = lenbuf; | ||
| 42 | 39 | ||
| 43 | if (!output) | 40 | if (!output) |
| 44 | return -1; | 41 | return -1; |
