summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-09-06 01:15:24 +0000
committerfche <fche>2005-09-06 01:15:24 +0000
commit499cf740abe8d6102f887d7b7d1cd6750bc83d44 (patch)
tree6c4fad2dcea6fbc5061061abcb19fd6d3b160ef5 /translate.cxx
parentcc9ee6059e4d3fb51c0695a8a57f75eb988a1786 (diff)
downloadsystemtap-steved-499cf740abe8d6102f887d7b7d1cd6750bc83d44.tar.gz
systemtap-steved-499cf740abe8d6102f887d7b7d1cd6750bc83d44.tar.xz
systemtap-steved-499cf740abe8d6102f887d7b7d1cd6750bc83d44.zip
2005-09-05 Frank Ch. Eigler <fche@elastic.org>
PR 1289 * translate.cxx (lex_cast_qstring): Correct "cast" of object to string containing more than one word. * tapset.cxx (lex_cast_qstring): Ditto. (dwarf_derived_module::emit_probe_entries): Emit and use a generic fault_handler.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx
index b71ef379..cca6cad6 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -36,9 +36,9 @@ lex_cast_qstring(IN const & in)
{
stringstream ss;
string out, out2;
- if (!(ss << in && ss >> out))
+ if (!(ss << in))
throw runtime_error("bad lexical cast");
-
+ out = ss.str();
out2 += '"';
for (unsigned i=0; i<out.length(); i++)
{