From: Peter Howkins Date: Mon, 2 Jul 2018 19:38:46 +0000 (+0100) Subject: dtwm: Coverity 89619 X-Git-Tag: 2.3.0a~268 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=152a655ce37867800611edabe8118e39d032414c;p=oweals%2Fcde.git dtwm: Coverity 89619 --- diff --git a/cde/programs/dtwm/DataBaseLoad.c b/cde/programs/dtwm/DataBaseLoad.c index 0fe94013..c6e9737c 100644 --- a/cde/programs/dtwm/DataBaseLoad.c +++ b/cde/programs/dtwm/DataBaseLoad.c @@ -1300,7 +1300,7 @@ AllocateRecordData (RecordData ** record_data, *record_data_count += 10; *record_data = (RecordData *) XtRealloc ((char *) *record_data, - sizeof (RecordData *) * (*record_data_count)); + sizeof (RecordData) * (*record_data_count)); } (*record_data)[*record_count].element_values =