diff options
author | tron <tron@openttd.org> | 2005-01-16 11:04:45 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-16 11:04:45 +0000 |
commit | 52c232844e1b774fb4d7ccd7c826f79197798309 (patch) | |
tree | 6bfae25529ddd3c533994d7fbb03a6461e751487 /window.c | |
parent | 58484ce6ee8c2cc4d119f8ee449628845d3b8c06 (diff) | |
download | openttd-52c232844e1b774fb4d7ccd7c826f79197798309.tar.xz |
(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |