1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Chow Loong Jin <hyperair@debian.org>
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 */
|