(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)

This commit is contained in:
tron 2005-01-16 11:04:45 +00:00
parent 1955371a71
commit efecea001a

View File

@ -240,7 +240,7 @@ void DeleteWindow(Window *w)
v = --_last_window; v = --_last_window;
count = (byte*)v - (byte*)w; count = (byte*)v - (byte*)w;
memcpy(w, w + 1, count); memmove(w, w + 1, count);
} }
Window *FindWindowById(WindowClass cls, WindowNumber number) Window *FindWindowById(WindowClass cls, WindowNumber number)