shithub: choc

Download patch

ref: e6d0591bd0674b0c56da7ca92a3721fa48aa1464
parent: fb4a67b74c4f5d5f305f2641c97881a9b8bf7da2
author: Simon Howard <[email protected]>
date: Thu Feb 15 16:51:53 EST 2007

Really fix the menu corruption bug.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 837

--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1822,7 +1822,7 @@
 	    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;