(svn r1534) Use memmove() instead of memcpy() when copying overlapping memory (tamlin)
This commit is contained in:
		
							
								
								
									
										2
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								window.c
									
									
									
									
									
								
							@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user