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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-11-16 16:29:38 -02:00
parent ede70c03b0
commit 7930567c27

View file

@ -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;