mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Minor changes in modules and host plugin.
This commit is contained in:
parent
04c14f2c6a
commit
484b6978fb
@ -55,7 +55,7 @@ CSStr FmtStr(CSStr str, ...)
|
|||||||
// Write the requested contents
|
// Write the requested contents
|
||||||
if (std::vsnprintf(g_Buffer, sizeof(g_Buffer), str, args) < 0)
|
if (std::vsnprintf(g_Buffer, sizeof(g_Buffer), str, args) < 0)
|
||||||
{
|
{
|
||||||
g_Buffer[0] = 0; // make sure the string is terminated
|
g_Buffer[0] = 0; // Make sure the string is terminated
|
||||||
}
|
}
|
||||||
// Release the argument list
|
// Release the argument list
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
@ -825,7 +825,7 @@ SQMOD_API_EXPORT unsigned int VcmpPluginInit(PluginFuncs* functions, PluginCallb
|
|||||||
_Info = info;
|
_Info = info;
|
||||||
// Assign plugin information
|
// Assign plugin information
|
||||||
_Info->uPluginVer = SQSQLITE_VERSION;
|
_Info->uPluginVer = SQSQLITE_VERSION;
|
||||||
strcpy(_Info->szName, SQSQLITE_HOST_NAME);
|
std::strcpy(_Info->szName, SQSQLITE_HOST_NAME);
|
||||||
// Bind callbacks
|
// Bind callbacks
|
||||||
BindCallbacks();
|
BindCallbacks();
|
||||||
// Notify that the plugin was successfully loaded
|
// Notify that the plugin was successfully loaded
|
||||||
|
@ -595,7 +595,7 @@ SQMOD_API_EXPORT unsigned int VcmpPluginInit(PluginFuncs* functions, PluginCallb
|
|||||||
_Info = info;
|
_Info = info;
|
||||||
// Assign plugin information
|
// Assign plugin information
|
||||||
_Info->uPluginVer = SQXML_VERSION;
|
_Info->uPluginVer = SQXML_VERSION;
|
||||||
strcpy(_Info->szName, SQXML_HOST_NAME);
|
std::strcpy(_Info->szName, SQXML_HOST_NAME);
|
||||||
// Bind callbacks
|
// Bind callbacks
|
||||||
BindCallbacks();
|
BindCallbacks();
|
||||||
// Notify that the plugin was successfully loaded
|
// Notify that the plugin was successfully loaded
|
||||||
|
@ -550,8 +550,10 @@ bool CmdManager::Parse()
|
|||||||
// Extract the current characters before advancing
|
// Extract the current characters before advancing
|
||||||
prev = elem, elem = *itr;
|
prev = elem, elem = *itr;
|
||||||
// See if there's anything left to parse
|
// See if there's anything left to parse
|
||||||
if (elem == 0)
|
if (elem == '\0')
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
// Early check to prevent parsing extraneous arguments
|
// Early check to prevent parsing extraneous arguments
|
||||||
else if (m_Argc >= max_arg)
|
else if (m_Argc >= max_arg)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user