summaryrefslogtreecommitdiffstats
path: root/gl/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/snprintf.c')
-rw-r--r--gl/snprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gl/snprintf.c b/gl/snprintf.c
index edeee083..58ad5d7a 100644
--- a/gl/snprintf.c
+++ b/gl/snprintf.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 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -28,10 +28,8 @@ int
28snprintf (char *str, size_t size, const char *format, ...) 28snprintf (char *str, size_t size, const char *format, ...)
29{ 29{
30 va_list args; 30 va_list args;
31 ptrdiff_t ret;
32
33 va_start (args, format); 31 va_start (args, format);
34 ret = vsnzprintf (str, size, format, args); 32 ptrdiff_t ret = vsnzprintf (str, size, format, args);
35 va_end (args); 33 va_end (args);
36 34
37#if PTRDIFF_MAX > INT_MAX 35#if PTRDIFF_MAX > INT_MAX