summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-16 11:04:45 +0000
committertron <tron@openttd.org>2005-01-16 11:04:45 +0000
commit52c232844e1b774fb4d7ccd7c826f79197798309 (patch)
tree6bfae25529ddd3c533994d7fbb03a6461e751487 /window.c
parent58484ce6ee8c2cc4d119f8ee449628845d3b8c06 (diff)
downloadopenttd-52c232844e1b774fb4d7ccd7c826f79197798309.tar.xz
(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 9b18ee671..8e55c1c87 100644
--- a/window.c
+++ b/window.c
@@ -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)