diff --git a/REDALERT/CONQUER.CPP b/REDALERT/CONQUER.CPP index 1262c2f59..78cc842bd 100644 --- a/REDALERT/CONQUER.CPP +++ b/REDALERT/CONQUER.CPP @@ -5573,7 +5573,7 @@ void Shake_The_Screen(int shakes, HousesType house) *=============================================================================================*/ void List_Copy(short const * source, int len, short * dest) { - if (dest == NULL || dest == NULL) { + if (source == NULL || dest == NULL) { return; } diff --git a/TIBERIANDAWN/SOUNDDLG.CPP b/TIBERIANDAWN/SOUNDDLG.CPP index 838f0caa8..3b951d9f4 100644 --- a/TIBERIANDAWN/SOUNDDLG.CPP +++ b/TIBERIANDAWN/SOUNDDLG.CPP @@ -245,7 +245,7 @@ void SoundControlsClass::Process(void) int length = Theme.Track_Length(index); char const * fullname = Theme.Full_Name(index); - void * ptr = new char [sizeof(100)]; + 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);