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
@ -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…
x
Reference in New Issue
Block a user