summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-16 16:29:38 -0200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-16 16:29:38 -0200
commit7930567c275d292b84ded6142e8c78e5b40c5941 (patch)
tree2bdf03fecd41ea807d47bedfa70d0a426f1b2223 /divelist.c
parentede70c03b0cff83f1d740204127fe594b8c378ec (diff)
downloadsubsurface-7930567c275d292b84ded6142e8c78e5b40c5941.tar.gz
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>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c
index bf853ec0e..cebe6ce9b 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;