]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Don't newline-terminate the dive name
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Aug 2011 17:45:29 +0000 (10:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Aug 2011 17:45:29 +0000 (10:45 -0700)
That resulted in ugly lists, and it was wrong to begin with.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse.c

diff --git a/parse.c b/parse.c
index 03cede25daa0ee3d82c718e27506998bc285b387..58476ef155e90c506d940a8f01cf99b10010f601 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -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);