summaryrefslogtreecommitdiffstats
path: root/src/bltSwitch.C
diff options
context:
space:
mode:
authorjoye <joye>2014-04-24 19:06:47 (GMT)
committerjoye <joye>2014-04-24 19:06:47 (GMT)
commit012bb5a056c9addc708d988016dd86d1f694b6c9 (patch)
tree72d63ccdad4d3a7c6020a8135a9d50909cb6cbe2 /src/bltSwitch.C
parent864d51942146281ee64e270b84710e009f46f954 (diff)
downloadblt-012bb5a056c9addc708d988016dd86d1f694b6c9.zip
blt-012bb5a056c9addc708d988016dd86d1f694b6c9.tar.gz
blt-012bb5a056c9addc708d988016dd86d1f694b6c9.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltSwitch.C')
-rw-r--r--src/bltSwitch.C10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bltSwitch.C b/src/bltSwitch.C
index 0db5213..489568f 100644
--- a/src/bltSwitch.C
+++ b/src/bltSwitch.C
@@ -28,7 +28,6 @@
*/
#include <string.h>
-#include <stdarg.h>
#include <stdlib.h>
#include <iostream>
@@ -39,7 +38,6 @@ using namespace std;
#include <tcl.h>
extern "C" {
-#include "bltInt.h"
#include "bltSwitch.h"
};
@@ -364,11 +362,9 @@ int Blt_ParseSwitches(Tcl_Interp* interp, Blt_SwitchSpec *specs,
return -1;
}
if (DoSwitch(interp, sp, objv[count], record) != TCL_OK) {
- char msg[200];
-
- snprintf(msg, 200, "\n (processing \"%.40s\" switch)",
- sp->switchName);
- Tcl_AddErrorInfo(interp, msg);
+ ostringstream str;
+ str << "\n (processing \"" << sp->switchName << "\" switch)" << ends;
+ Tcl_AddErrorInfo(interp, str.str().c_str());
return -1;
}
}