mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-03-10 Alan Coopersmith <alan.coopersmith@sun.com>
|
||||
|
||||
* hw/xfree86/utils/xorgcfg/options.c:
|
||||
Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)
|
||||
|
||||
2006-03-10 Eric Anholt <anholt@FreeBSD.org>
|
||||
|
||||
* hw/kdrive/ephyr/ephyr.c: (ephyrMapFramebuffer):
|
||||
|
||||
@@ -334,7 +334,7 @@ OptionsPopup(XF86OptionPtr *opts)
|
||||
if (!nomodules) {
|
||||
if (menu)
|
||||
XtDestroyWidget(menu);
|
||||
XmuSnprintf(menuName, sizeof(buf), "optionM%d", menuN);
|
||||
XmuSnprintf(menuName, sizeof(menuName), "optionM%d", menuN);
|
||||
menuN = !menuN;
|
||||
menu = XtCreatePopupShell(menuName, simpleMenuWidgetClass, button,
|
||||
NULL, 0);
|
||||
|
||||
Reference in New Issue
Block a user