diff --git a/cde/programs/dtwm/Callback.c b/cde/programs/dtwm/Callback.c index 074d3e9ef..05a4b39a6 100644 --- a/cde/programs/dtwm/Callback.c +++ b/cde/programs/dtwm/Callback.c @@ -617,7 +617,7 @@ WorkspaceModifyCB (Widget w, switch_data->buttons = (Widget *) XtRealloc ((char *) switch_data->buttons, - sizeof (Widget *) * switch_data->switch_count); + sizeof (Widget) * switch_data->switch_count); SwitchButtonCreate (switch_data, True);