From: Linus Torvalds Date: Wed, 31 Aug 2011 17:45:29 +0000 (-0700) Subject: Don't newline-terminate the dive name X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=de8dc53f755e9872d822f1652d105fa5ef48c6df;p=ext%2Fsubsurface.git Don't newline-terminate the dive name That resulted in ugly lists, and it was wrong to begin with. Signed-off-by: Linus Torvalds --- diff --git a/parse.c b/parse.c index 03cede2..58476ef 100644 --- 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);