Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)
This commit is contained in:
parent
d695579848
commit
f2ecbb3018
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user