** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: syserror.cpp,v 1.5 2000/08/31 08:38:58 kevin Exp $
+** $Id: syserror.cpp,v 1.6 2000/09/07 04:31:41 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
cout << "WARNING ERROR: ";
break;
default:
- sys_error (ERR_FATAL, "illegal error code #%d [sys_error]", severity);
+ cout << "Illegal error code #" << severity << ": ";
}
char errStr[512];
+#if HAVE_VSNPRINTF
vsnprintf (errStr, sizeof(errStr), msg, arg);
+#elif HAVE_VSPRINTF
+ vsprintf (errStr, msg, arg);
+#endif
+
cout << errStr << endl;
if (severity == ERR_FATAL)