From 7930567c275d292b84ded6142e8c78e5b40c5941 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 16 Nov 2011 16:29:38 -0200 Subject: [PATCH] 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 --- divelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0