mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
ede70c03b0
commit
7930567c27
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue