dtwm: Coverity 88247
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:35:57 +0000 (20:35 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:35:57 +0000 (20:35 +0100)
cde/programs/dtwm/Callback.c

index 074d3e9efbcd614d529749ac4bce0957eb1b7903..05a4b39a6b626d9c86ea508311a114635412ce43 100644 (file)
@@ -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);