Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)

This commit is contained in:
Alan Coopersmith 2006-03-11 01:58:32 +00:00
parent d695579848
commit f2ecbb3018
2 changed files with 6 additions and 1 deletions

View File

@ -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):

View File

@ -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);