aboutsummaryrefslogtreecommitdiffstats
path: root/sane.c
diff options
context:
space:
mode:
Diffstat (limited to 'sane.c')
-rw-r--r--sane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sane.c b/sane.c
index 585ac1c..911134d 100644
--- a/sane.c
+++ b/sane.c
@@ -37,7 +37,7 @@ build_menu(Widget widget, XtPointer clientdata, XtPointer call_data)
XtNnumChildren,&nchildren,
NULL);
wlist = malloc(sizeof(Widget*)*nchildren);
- memcpy(list,children,sizeof(Widget*)*nchildren);
+ memcpy(wlist,children,sizeof(Widget*)*nchildren);
for (i = 0; i < nchildren; i++)
XtDestroyWidget(wlist[i]);
free(wlist);