summaryrefslogtreecommitdiffstats
path: root/gl/vsnprintf.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-02-12 11:07:18 (GMT)
commitbd7029a99b0c2974265c6665638ef14a052f42ab (patch)
treef5661ba73366d81ef6e91f889ea7fec5ebe07b6b /gl/vsnprintf.c
parentf99612320d6eda67644c07be04bb21aa4d7789db (diff)
downloadmonitoring-plugins-bd7029a99b0c2974265c6665638ef14a052f42ab.tar.gz
Sync to latest Gnulib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1925 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'gl/vsnprintf.c')
-rw-r--r--gl/vsnprintf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gl/vsnprintf.c b/gl/vsnprintf.c
index af567d2..cc8f61f 100644
--- a/gl/vsnprintf.c
+++ b/gl/vsnprintf.c
@@ -1,10 +1,10 @@
1/* Formatted output to strings. 1/* Formatted output to strings.
2 Copyright (C) 2004, 2006 Free Software Foundation, Inc. 2 Copyright (C) 2004, 2006-2007 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 program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option) 7 the Free Software Foundation; either version 3, or (at your option)
8 any later version. 8 any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
@@ -21,12 +21,11 @@
21#endif 21#endif
22 22
23/* Specification. */ 23/* Specification. */
24#include "vsnprintf.h" 24#include <stdio.h>
25 25
26#include <errno.h> 26#include <errno.h>
27#include <limits.h> 27#include <limits.h>
28#include <stdarg.h> 28#include <stdarg.h>
29#include <stdio.h>
30#include <stdlib.h> 29#include <stdlib.h>
31#include <string.h> 30#include <string.h>
32 31
@@ -41,7 +40,7 @@
41 additional length SIZE limit how much is written into STR. Returns 40 additional length SIZE limit how much is written into STR. Returns
42 string length of formatted string (which may be larger than SIZE). 41 string length of formatted string (which may be larger than SIZE).
43 STR may be NULL, in which case nothing will be written. On error, 42 STR may be NULL, in which case nothing will be written. On error,
44 return a negative value. */ 43 return a negative value. */
45int 44int
46vsnprintf (char *str, size_t size, const char *format, va_list args) 45vsnprintf (char *str, size_t size, const char *format, va_list args)
47{ 46{