diff --git a/REDALERT/CONQUER.CPP b/REDALERT/CONQUER.CPP index 5f0db84b3..94d5c0705 100644 --- a/REDALERT/CONQUER.CPP +++ b/REDALERT/CONQUER.CPP @@ -5594,7 +5594,8 @@ void Shake_The_Screen(int shakes, HousesType house) *=============================================================================================*/ void List_Copy(short const * source, int len, short * dest) { - if (dest == NULL || dest == NULL) { + // Chthon CFE Note: bugfix as per https://github.com/electronicarts/CnC_Remastered_Collection/pull/81 + if (source == NULL || dest == NULL) { return; } diff --git a/TIBERIANDAWN/SOUNDDLG.CPP b/TIBERIANDAWN/SOUNDDLG.CPP index e68c8a47d..a5cb4dc63 100644 --- a/TIBERIANDAWN/SOUNDDLG.CPP +++ b/TIBERIANDAWN/SOUNDDLG.CPP @@ -245,7 +245,8 @@ void SoundControlsClass::Process(void) int length = Theme.Track_Length(index); char const * fullname = Theme.Full_Name(index); - void * ptr = new char [sizeof(100)]; + // Chthon CFE Note: bugfix as per https://github.com/electronicarts/CnC_Remastered_Collection/pull/81 + void * ptr = new char [100]; if (ptr) { sprintf((char *)ptr, "%cTrack %d\t%d:%02d\t%s", index, listbox.Count()+1, length / 60, length % 60, fullname); listbox.Add_Item((char const *)ptr);