ALT Linux repos
Group :: Graphical desktop/Other
RPM: ctwm
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: ctwm-strlen.patch
Download
Download
--- menus.c 2007-02-16 12:24:27 +0300
+++ menus.c 2007-04-18 12:06:02 +0400
@@ -1533,7 +1533,7 @@
if (menu == Scr->Keys) {
FuncKey *tmpKey;
char *tmpStr, *tmpStr2;
- char modStr[5];
+ char modStr[6];
char *oldact = 0;
int oldmod = 0;
int tmpLen;
@@ -1563,7 +1563,7 @@
case 12: strcpy (modStr, "C + M"); break;
default: break;
}
- tmpLen = (strlen (tmpKey->name) + strlen (modStr) + 5);
+ tmpLen = (strlen (tmpKey->name) + strlen (modStr) + 6);
tmpStr = malloc (sizeof(char) * tmpLen);
sprintf (tmpStr,"[%s + %s]", tmpKey->name, modStr);
tmpStr2 = malloc (sizeof(char) * (strlen (tmpKey->action) + tmpLen + 2));