This commit is contained in:
fix94.1 2012-06-01 15:05:05 +00:00
parent 550b6867d0
commit c268e13a8e

View File

@ -151,7 +151,7 @@ void Plugin::SetEnablePlugin(Config &cfg, u8 pos, u8 ForceMode)
{ {
if(pos < Plugins.size()) if(pos < Plugins.size())
{ {
char PluginMagicWord[8]; char PluginMagicWord[9];
snprintf(PluginMagicWord, sizeof(PluginMagicWord), "%08x", Plugins[pos].magicWord); snprintf(PluginMagicWord, sizeof(PluginMagicWord), "%08x", Plugins[pos].magicWord);
if(ForceMode == 1) if(ForceMode == 1)
cfg.setBool("PLUGIN", PluginMagicWord, false); cfg.setBool("PLUGIN", PluginMagicWord, false);