diff -r 1b63e6a22664 -r 6dd90eaa0593 core/PluginSys.cpp --- a/core/PluginSys.cpp Mon Sep 07 17:15:47 2009 -0700 +++ b/core/PluginSys.cpp Mon Sep 07 21:29:18 2009 -0700 @@ -59,7 +59,7 @@ m_bSilentlyFailed = false; m_serial = ++MySerial; m_pRuntime = NULL; - m_errormsg[256] = '\0'; + m_errormsg[sizeof(m_errormsg) - 1] = '\0'; snprintf(m_filename, sizeof(m_filename), "%s", file); m_handle = 0; m_ident = NULL;