1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Minor changes in modules and host plugin.

This commit is contained in:
Sandu Liviu Catalin
2016-04-02 13:13:32 +03:00
parent 04c14f2c6a
commit 484b6978fb
4 changed files with 6 additions and 4 deletions

View File

@ -55,7 +55,7 @@ CSStr FmtStr(CSStr str, ...)
// Write the requested contents
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
va_end(args);

View File

@ -825,7 +825,7 @@ SQMOD_API_EXPORT unsigned int VcmpPluginInit(PluginFuncs* functions, PluginCallb
_Info = info;
// Assign plugin information
_Info->uPluginVer = SQSQLITE_VERSION;
strcpy(_Info->szName, SQSQLITE_HOST_NAME);
std::strcpy(_Info->szName, SQSQLITE_HOST_NAME);
// Bind callbacks
BindCallbacks();
// Notify that the plugin was successfully loaded