diff options
author | joye <joye> | 2014-04-24 19:01:30 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-24 19:01:30 (GMT) |
commit | 6a107486197fabb64f1e5bc07972ac29c75a1d16 (patch) | |
tree | c38a9fcb3dce633dc4d48abd492e7d4a7e423e31 /src/bltParse.C | |
parent | 0bc6589c10da2193d451ab2419ec87255c696c0d (diff) | |
download | blt-6a107486197fabb64f1e5bc07972ac29c75a1d16.zip blt-6a107486197fabb64f1e5bc07972ac29c75a1d16.tar.gz blt-6a107486197fabb64f1e5bc07972ac29c75a1d16.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltParse.C')
-rw-r--r-- | src/bltParse.C | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/bltParse.C b/src/bltParse.C index 59e067b..f0860dc 100644 --- a/src/bltParse.C +++ b/src/bltParse.C @@ -26,6 +26,11 @@ #include <stdlib.h> #include <string.h> +#include <iostream> +#include <sstream> +#include <iomanip> +using namespace std; + #include <tcl.h> extern "C" { @@ -502,11 +507,10 @@ int Blt_ParseQuotes( src += nRead; continue; } else if (c == '\0') { - char buf[10]; - Tcl_ResetResult(interp); - sprintf_s(buf, 10, "missing %c", termChar); - Tcl_SetStringObj(Tcl_GetObjResult(interp), buf, 9); + ostringstream str; + str << "missing " << termChar << ends; + Tcl_SetStringObj(Tcl_GetObjResult(interp), str.str().c_str(), 9); *termPtr = string - 1; return TCL_ERROR; } else { |