summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index e1c14da2f70..972c4333d38 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -653,7 +653,7 @@ list_of_items (vector, names, pane) /* get list from emacs and put to vector */
if (XTYPE (pane) != Lisp_Cons) pane = wrong_type_argument (Qlistp, pane);
- i = XFASTINT (Flength (pane, 1));
+ i = XFASTINT (Flength (pane));
*vector = (Lisp_Object *) xmalloc (i * sizeof (Lisp_Object));
*names = (char **) xmalloc (i * sizeof (char *));