X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsnprintf.c;h=310edbde6fd919027b68685c42813ce21135dec1;hb=441aa3044f43e5572f58c354f01e6bc070acd5c7;hp=7b9725b3b6053181b5ef0ef9af8c34aa10451754;hpb=039ae97b8ae35a2446c5d62d72b21689c97da7e2;p=gnulib.git diff --git a/lib/snprintf.c b/lib/snprintf.c index 7b9725b3b..310edbde6 100644 --- a/lib/snprintf.c +++ b/lib/snprintf.c @@ -53,11 +53,11 @@ snprintf (char *str, size_t size, const char *format, ...) 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); }