diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-03-11 01:58:32 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2006-03-11 01:58:32 +0000 |
commit | f2ecbb30187000547a98ca7cbaee433ea4ba8fe3 (patch) | |
tree | 0c95d6f70fe0679299043d351259b12a4b6f8b80 /hw/xfree86/utils | |
parent | d6955798489813ef77cca13cf5f5c67d49e6dece (diff) |
Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)
Diffstat (limited to 'hw/xfree86/utils')
-rw-r--r-- | hw/xfree86/utils/xorgcfg/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/utils/xorgcfg/options.c b/hw/xfree86/utils/xorgcfg/options.c index 35f894ceb..4187c1c3d 100644 --- a/hw/xfree86/utils/xorgcfg/options.c +++ b/hw/xfree86/utils/xorgcfg/options.c @@ -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); |