Module Name:    xsrc
Committed By:   mrg
Date:           Fri Aug 11 18:32:46 UTC 2023

Modified Files:
        xsrc/external/mit/ctwm/dist: menus.c

Log Message:
redo previous change which didn't actually avoid the truncation.

increase the definition of MSLEN so that the size check fits the
maximum actual string definition.  also reduces diff vs upstream
to just one 1 line.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 xsrc/external/mit/ctwm/dist/menus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.12 xsrc/external/mit/ctwm/dist/menus.c:1.13
--- xsrc/external/mit/ctwm/dist/menus.c:1.12	Fri Jul 28 14:27:35 2023
+++ xsrc/external/mit/ctwm/dist/menus.c	Fri Aug 11 18:32:46 2023
@@ -1658,8 +1658,8 @@ mk_twmkeys_entry(const FuncKey *key)
 {
 	char *ret;
 	//         S+  C+  5(Mx+)  5(Ax+)
-#define MSLEN (2 + 2 + 5 * 3 + 5 * 3)
-	char modStr[64];
+#define MSLEN (2 + 2 + 2 + 5 * 3 + 5 * 3 + 1 + 26)
+	char modStr[MSLEN + 1];
 	char *modStrCur = modStr;
 
 	// Init

Reply via email to