Skip to content

Commit 8c73315

Browse files
committed
Fixed possible problem with telnet subnegotiations under Python
1 parent 4055e50 commit 8c73315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ bool CPlugin::ExecutePluginScript (CScriptCallInfo & callinfo,
393393
VARIANT v;
394394
VariantClear (&v);
395395
v.vt = VT_BSTR;
396-
v.bstrVal = CString (sText.c_str (), sText.size ()).AllocSysString ();
396+
CString str (sText.c_str (), sText.size ());
397+
v.bstrVal = str.AllocSysString ();
397398
args [eText].Attach (v);
398-
399399

400400
COleVariant result;
401401

0 commit comments

Comments
 (0)