From 152a655ce37867800611edabe8118e39d032414c Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 20:38:46 +0100 Subject: [PATCH] dtwm: Coverity 89619 --- cde/programs/dtwm/DataBaseLoad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.25.1