diff options
Diffstat (limited to 'winsup/cygwin/assert.cc')
-rw-r--r-- | winsup/cygwin/assert.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/assert.cc b/winsup/cygwin/assert.cc index 98acb6d..fd1f383 100644 --- a/winsup/cygwin/assert.cc +++ b/winsup/cygwin/assert.cc @@ -32,16 +32,15 @@ __assert (const char *file, int line, const char *failedexpr) char *buf; buf = (char *) alloca (100 + strlen (failedexpr)); - siprintf (buf, "Failed assertion\n\t%s\nat line %d of file %s", + __small_sprintf (buf, "Failed assertion\n\t%s\nat line %d of file %s", failedexpr, line, file); MessageBox (NULL, buf, NULL, MB_OK | MB_ICONERROR | MB_TASKMODAL); } else { CloseHandle (h); - (void) fiprintf (stderr, - "assertion \"%s\" failed: file \"%s\", line %d\n", - failedexpr, file, line); + small_printf ("assertion \"%s\" failed: file \"%s\", line %d\n", + failedexpr, file, line); } abort (); |