summaryrefslogtreecommitdiff
path: root/hw/xfree86/utils
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-11 01:58:32 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-11 01:58:32 +0000
commitf2ecbb30187000547a98ca7cbaee433ea4ba8fe3 (patch)
tree0c95d6f70fe0679299043d351259b12a4b6f8b80 /hw/xfree86/utils
parentd6955798489813ef77cca13cf5f5c67d49e6dece (diff)
Pass sizeof the correct buffer to XmuSnprintf. (Coverity #489)
Diffstat (limited to 'hw/xfree86/utils')
-rw-r--r--hw/xfree86/utils/xorgcfg/options.c2
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);