]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Show more of the dive location in the dive list
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Nov 2011 18:29:38 +0000 (16:29 -0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Nov 2011 18:29:38 +0000 (16:29 -0200)
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>
divelist.c

index bf853ec0e49fce534853c3b59e98abb0d9a314a1..cebe6ce9b1ba2dd4ece5751fe757bd7f6c04d274 100644 (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;