mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't newline-terminate the dive name
That resulted in ugly lists, and it was wrong to begin with. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									77cfe07c52
								
							
						
					
					
						commit
						de8dc53f75
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								parse.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								parse.c
									
										
									
									
									
								
							|  | @ -401,7 +401,7 @@ static char *generate_name(struct dive *dive) | ||||||
| 	len = snprintf(buffer, sizeof(buffer), | 	len = snprintf(buffer, sizeof(buffer), | ||||||
| 		"%04d-%02d-%02d " | 		"%04d-%02d-%02d " | ||||||
| 		"%02d:%02d:%02d " | 		"%02d:%02d:%02d " | ||||||
| 		"(%d ft, %d min)\n", | 		"(%d ft, %d min)", | ||||||
| 		tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, | 		tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, | ||||||
| 		tm->tm_hour, tm->tm_min, tm->tm_sec, | 		tm->tm_hour, tm->tm_min, tm->tm_sec, | ||||||
| 		to_feet(dive->maxdepth), dive->duration.seconds / 60); | 		to_feet(dive->maxdepth), dive->duration.seconds / 60); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue