X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fvsnprintf.c;h=fb0dbfa9a26eb56dae9f512266d499c2ab66608d;hb=c5d62fdfd433cd8314d01e426380e5b1967c8374;hp=043999d351c1cfdfa1c814f696d005ecf8137811;hpb=17959d7c83195b5568ac4c311d2754971efd4b90;p=gnulib.git diff --git a/lib/vsnprintf.c b/lib/vsnprintf.c index 043999d35..fb0dbfa9a 100644 --- a/lib/vsnprintf.c +++ b/lib/vsnprintf.c @@ -1,5 +1,5 @@ /* Formatted output to strings. - Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2004, 2006-2010 Free Software Foundation, Inc. Written by Simon Josefsson and Yoann Vandoorselaere . This program is free software; you can redistribute it and/or modify @@ -52,11 +52,11 @@ vsnprintf (char *str, size_t size, const char *format, va_list args) 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); }