** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: syserror.cpp,v 1.7 2000/12/06 01:46:43 kevin Exp $
+** $Id: syserror.cpp,v 1.8 2000/12/17 23:30:48 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
std::cout << "Illegal error code #" << severity << ": ";
}
- char errStr[512];
+ char errStr[512];\r
+
#if HAVE_VSNPRINTF
vsnprintf (errStr, sizeof(errStr), msg, arg);
#elif HAVE_VSPRINTF
- vsprintf (errStr, msg, arg);
+ vsprintf (errStr, msg, arg);\r
+#else\r
+ strncpy (errStr, sizeof(errStr), "Error message not available on this platform.");
#endif
std::cout << errStr << std::endl;