Skip to content

Commit 5edf258

Browse files
committed
Fixed bug where 0x00 bytes would not be passed to OnPluginPacketReceived
1 parent 5017e89 commit 5edf258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripting/lua_scripting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ bool CScriptEngine::ExecuteLua (DISPID & dispid, // dispatch ID, will b
677677
return true; // error return
678678
}
679679

680-
lua_pushstring (L, strParam); // the solitary argument
680+
lua_pushlstring (L, strParam, strParam.GetLength ()); // the solitary argument
681681

682682
if (iReason != eDontChangeAction)
683683
m_pDoc->m_iCurrentActionSource = iReason;

0 commit comments

Comments
 (0)