Changeset - r1033:57e82cd70b57
[Not reviewed]
master
0 1 0
tron - 20 years ago 2005-01-16 11:04:45
tron@openttd.org
(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
window.c
Show inline comments
 
@@ -240,7 +240,7 @@ void DeleteWindow(Window *w)
 

	
 
	v = --_last_window;
 
	count = (byte*)v - (byte*)w;
 
	memcpy(w, w + 1, count);
 
	memmove(w, w + 1, count);
 
}
 

	
 
Window *FindWindowById(WindowClass cls, WindowNumber number)
0 comments (0 inline, 0 general)