sendmail: fix parsing of addresses in angle brackets
Pointer e needs to be wound back in order to overwrite '>' with '\0'.
Regression introduced in 20077c1429
Signed-off-by: Raffaello D. Di Napoli <rafdev@dinapo.li>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 Denys Vlasenko
						Denys Vlasenko
					
				
			
			
				
	
			
			
			
						parent
						
							2cd81698ee
						
					
				
				
					commit
					6f09785b7e
				
			| @@ -173,7 +173,7 @@ static char *angle_address(char *str) | |||||||
| 	char *s, *e; | 	char *s, *e; | ||||||
|  |  | ||||||
| 	e = trim(str); | 	e = trim(str); | ||||||
| 	if (e != str && e[-1] == '>') { | 	if (e != str && *--e == '>') { | ||||||
| 		s = strrchr(str, '<'); | 		s = strrchr(str, '<'); | ||||||
| 		if (s) { | 		if (s) { | ||||||
| 			*e = '\0'; | 			*e = '\0'; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user