Warning fix: array subscript is above array bounds

This commit is contained in:
torsten
2009-08-23 21:37:02 +02:00
committed by Tim Moore
parent c824731bc6
commit 918e315d47
+1 -1
View File
@@ -331,7 +331,7 @@ sg_format_exception::setText (const char* text)
{
if (text) {
strncpy(_text, text, MAX_TEXT_LEN);
_text[MAX_TEXT_LEN] = '\0';
_text[MAX_TEXT_LEN-1] = '\0';
} else {
_text[0] = '\0';
}