diff options
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2720,6 +2720,8 @@ void set_save_userid_local(short value) void set_userid(char *rUserId) { prefs.userid = strdup(rUserId); + if (strlen(prefs.userid) > 30) + prefs.userid[30]='\0'; } int average_depth(struct diveplan *dive) |