From: Peter Howkins Date: Mon, 2 Jul 2018 19:43:50 +0000 (+0100) Subject: dtwm: Coverity 89124 X-Git-Tag: 2.3.0a~265 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=415964d43364c8a131f028378e28d5a8c2056d56;p=oweals%2Fcde.git dtwm: Coverity 89124 --- diff --git a/cde/programs/dtwm/Session.c b/cde/programs/dtwm/Session.c index 54a85b7b..3c51b0ad 100644 --- a/cde/programs/dtwm/Session.c +++ b/cde/programs/dtwm/Session.c @@ -180,7 +180,7 @@ SessionRestoreData (void) max_subpanel_count += 10; subpanel_data = (SubpanelData **) XtRealloc ((char *) subpanel_data, - sizeof (SubpanelData **) * max_subpanel_count); + sizeof (SubpanelData *) * max_subpanel_count); } subpanel_data[subpanel_count] = control_data->subpanel_data;