aboutsummaryrefslogtreecommitdiffstats
path: root/main/motif/12-fix_buffer_overrun_in_libxm.patch
blob: 227b1c57a343124fb4be84842fa740255aca4a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix buffer overrun in libXm (FontS.c)
Origin: upstream commit dada5ff7f93cb48afaec2469f5dde24178d8d6da
Bug: http://bugs.motifzone.net/show_bug.cgi?id=1568
Author: Arthur Haas <ahaas@impactweather.com>
Author: Graham Inggs <graham@nerve.org.za>
Last-Update: 2013-02-19
--- a/lib/Xm/FontS.c
+++ b/lib/Xm/FontS.c
@@ -1879,7 +1879,7 @@
 		String params[1];
 		Cardinal num = 1;
 		
-		params[1] = new_font;
+		params[0] = new_font;
 		dbg(); _XmWarningMsg((Widget) fsw, XmNbadXlfdFont,
 			XmNbadXlfdFontMsg, params, num);
 	    }