tags 669359 + patch
kthxbye

Here's a patch.

-- 
Kind regards,
Loong Jin
From: Chow Loong Jin <[email protected]>
Description: Drop unused uname variable in createallmulti()
 This fixes a buffer overflow due to an increase in MAXMULTI from 200 to 1000.
Index: kdrill/multikanji.c
===================================================================
--- kdrill.orig/multikanji.c	2012-04-19 19:10:54.203993261 +0800
+++ kdrill/multikanji.c	2012-04-19 19:11:12.214061826 +0800
@@ -233,7 +233,7 @@
 	Widget newbutton,newu;
 	Widget prevbutton=NULL;
 	int formwidth=GetWidgetWidth(multi_popup);
-	char buttname[10],uname[10];
+	char buttname[10];
 	int transcount;
 
 
@@ -244,7 +244,6 @@
 	
 	for(transcount=0;transcount<MAXMULTI;transcount++){
 		sprintf(buttname, "multi%x\n", (unsigned int)transcount);
-		sprintf(uname, "multiU%x\n", (unsigned int)transcount);
 
 		if(transcount>0){
 			/* we use this for XtNfromVert offset */

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to