From: Linus Torvalds Date: Wed, 16 Nov 2011 18:29:38 +0000 (-0200) Subject: Show more of the dive location in the dive list X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7930567c275d292b84ded6142e8c78e5b40c5941;hp=ede70c03b0cff83f1d740204127fe594b8c378ec;p=ext%2Fsubsurface.git Show more of the dive location in the dive list Randomly picked up to 60 characters. But maybe we should just get rid of the limit entirely. Signed-off-by: Linus Torvalds --- diff --git a/divelist.c b/divelist.c index bf853ec..cebe6ce 100644 --- a/divelist.c +++ b/divelist.c @@ -351,8 +351,8 @@ static void get_string(char **str, const char *s) if (!s) s = ""; len = strlen(s); - if (len > 40) - len = 40; + if (len > 60) + len = 60; n = malloc(len+1); memcpy(n, s, len); n[len] = 0;