projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fsusage: Enable large volume support on AIX >= 5.2.
[gnulib.git]
/
lib
/
snprintf.c
diff --git
a/lib/snprintf.c
b/lib/snprintf.c
index
7b9725b
..
dc435a0
100644
(file)
--- a/
lib/snprintf.c
+++ b/
lib/snprintf.c
@@
-1,5
+1,5
@@
/* Formatted output to strings.
/* Formatted output to strings.
- Copyright (C) 2004, 2006-20
08
Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006-20
11
Free Software Foundation, Inc.
Written by Simon Josefsson and Paul Eggert.
This program is free software; you can redistribute it and/or modify
Written by Simon Josefsson and Paul Eggert.
This program is free software; you can redistribute it and/or modify
@@
-53,11
+53,11
@@
snprintf (char *str, size_t size, const char *format, ...)
if (output != str)
{
if (size)
if (output != str)
{
if (size)
- {
- size_t pruned_len = (len < size ? len : size - 1);
- memcpy (str, output, pruned_len);
- str[pruned_len] = '\0';
- }
+
{
+
size_t pruned_len = (len < size ? len : size - 1);
+
memcpy (str, output, pruned_len);
+
str[pruned_len] = '\0';
+
}
free (output);
}
free (output);
}