mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	OSdep: Update for xrealloc() change
This updates the code for xrealloc() which now only takes two parameters.
This commit is contained in:
		@@ -50,7 +50,7 @@ osdep_get_name(int fd, unused char *tty)
 | 
			
		||||
	while ((ch = fgetc(f)) != EOF) {
 | 
			
		||||
		if (ch == '\0')
 | 
			
		||||
			break;
 | 
			
		||||
		buf = xrealloc(buf, 1, len + 2);
 | 
			
		||||
		buf = xrealloc(buf, len + 2);
 | 
			
		||||
		buf[len++] = ch;
 | 
			
		||||
	}
 | 
			
		||||
	if (buf != NULL)
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ osdep_get_name(int fd, unused char *tty)
 | 
			
		||||
	while ((ch = fgetc(f)) != EOF) {
 | 
			
		||||
		if (ch == '\0')
 | 
			
		||||
			break;
 | 
			
		||||
		buf = xrealloc(buf, 1, len + 2);
 | 
			
		||||
		buf = xrealloc(buf, len + 2);
 | 
			
		||||
		buf[len++] = ch;
 | 
			
		||||
	}
 | 
			
		||||
	if (buf != NULL)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user