diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-31 10:45:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-31 10:45:29 -0700 |
commit | de8dc53f755e9872d822f1652d105fa5ef48c6df (patch) | |
tree | 6a6eda4293024bb08856058fa91e137b43ae1a36 | |
parent | 77cfe07c52d25554779c60d37e4a55e34a0164f2 (diff) | |
download | subsurface-de8dc53f755e9872d822f1652d105fa5ef48c6df.tar.gz |
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>
-rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -401,7 +401,7 @@ static char *generate_name(struct dive *dive) len = snprintf(buffer, sizeof(buffer), "%04d-%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_hour, tm->tm_min, tm->tm_sec, to_feet(dive->maxdepth), dive->duration.seconds / 60); |