Skip to content

Commit

Permalink
Fixed possible problem with telnet subnegotiations under Python
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Oct 14, 2011
1 parent 4055e50 commit 8c73315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins.cpp
Expand Up @@ -393,9 +393,9 @@ bool CPlugin::ExecutePluginScript (CScriptCallInfo & callinfo,
VARIANT v;
VariantClear (&v);
v.vt = VT_BSTR;
v.bstrVal = CString (sText.c_str (), sText.size ()).AllocSysString ();
CString str (sText.c_str (), sText.size ());
v.bstrVal = str.AllocSysString ();
args [eText].Attach (v);


COleVariant result;

Expand Down

0 comments on commit 8c73315

Please sign in to comment.