+2007-10-20 Jim Meyering <meyering@redhat.com>
+
+ xprintf fixes.
+ * lib/xprintf.c (xprintf, xfprintf): Use va_end.
+ Use a clearer diagnostic.
+ Patch from Bruno Haible.
+
2007-10-20 Bruno Haible <bruno@clisp.org>
* lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
va_start (args, format);
int err = vprintf (format, args);
if (err < 0 && ! ferror (stdout))
- error (exit_failure, errno, gettext ("write error"));
+ error (exit_failure, errno, gettext ("cannot perform formatted output"));
+ va_end (args);
return err;
}
va_start (args, format);
int err = vfprintf (stream, format, args);
if (err < 0 && ! ferror (stream))
- error (exit_failure, errno, gettext ("write error"));
+ error (exit_failure, errno, gettext ("cannot perform formatted output"));
+ va_end (args);
return err;
}