commit | c2f6e0cb812dd08fdb8f8cabda4f08a070c6f9fe | [log] [tgz] |
---|---|---|
author | srs5694 <srs5694@users.sourceforge.net> | Wed Mar 16 02:42:33 2011 -0400 |
committer | srs5694 <srs5694@users.sourceforge.net> | Wed Mar 16 02:42:33 2011 -0400 |
tree | 24934b43df063f9889923f8c6b373f84aca66932 | |
parent | 01f7f08624f0c942001977415214a578621f6495 [diff] [blame] |
A few miscellaneous changes
diff --git a/support.cc b/support.cc index 1994cd2..f51973a 100644 --- a/support.cc +++ b/support.cc
@@ -33,8 +33,9 @@ void ReadCString(char *inStr, int numchars) { if (!fgets(inStr, numchars, stdin)) { - cerr << "Critical error! Failed fgets() in ReadCString()\n"; - exit(1); + cerr << "Error! Failed fgets() in ReadCString()\n"; + if ((numchars > 0) && (inStr != NULL)) + inStr[0] = '\0'; } // if } // ReadCString()