summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/m_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/m_menu.c b/src/m_menu.c
index 456d38ec..2abcc52c 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1822,7 +1822,7 @@ void M_Drawer (void)
for (i = 0; i < strlen(messageString + start); i++)
if (messageString[start + i] == '\n')
{
- memset(string, 0, 40);
+ memset(string, 0, sizeof(string));
strncpy(string, messageString + start, i);
foundnewline = 1;
start += i + 1;