mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add xreallocarray and remove nmemb argument from xrealloc.
This commit is contained in:
		
							
								
								
									
										4
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								screen.c
									
									
									
									
									
								
							@@ -215,8 +215,8 @@ screen_resize_y(struct screen *s, u_int sy)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Resize line arrays. */
 | 
			
		||||
	gd->linedata = xrealloc(
 | 
			
		||||
	    gd->linedata, gd->hsize + sy, sizeof *gd->linedata);
 | 
			
		||||
	gd->linedata = xreallocarray(gd->linedata, gd->hsize + sy,
 | 
			
		||||
	    sizeof *gd->linedata);
 | 
			
		||||
 | 
			
		||||
	/* Size increasing. */
 | 
			
		||||
	if (sy > oldy) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user