* dcrt0.cc (__api_fatal): Drop spare argument to __small_sprintf.

* smallprint.c (__small_vsprintf): Preserve GetLastError value.
	* winsup.h (api_fatal): Simplify.  Drop duplicate filename arg.
This commit is contained in:
Corinna Vinschen
2006-10-27 10:41:51 +00:00
parent 6aea277648
commit 17f3068d4e
4 changed files with 12 additions and 3 deletions

View File

@@ -1151,7 +1151,7 @@ __api_fatal (const char *fmt, ...)
va_list ap;
va_start (ap, fmt);
int n = __small_sprintf (buf, "%P: *** fatal error - ", cygwin_pid (GetCurrentProcessId ()));
int n = __small_sprintf (buf, "%P: *** fatal error - ");
__small_vsprintf (buf + n, fmt, ap);
va_end (ap);
strace.prntf (_STRACE_SYSTEM, NULL, "%s", buf);