diff options
-rw-r--r-- | statistics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/statistics.c b/statistics.c index 6a6d177f4..fbb739791 100644 --- a/statistics.c +++ b/statistics.c @@ -365,5 +365,7 @@ char *get_gaslist(struct dive *dive) } if (*buf == '\0') strncpy(buf, translate("gettextFromC","air"), MAXBUF); + + buf[MAXBUF - 1] = '\0'; return buf; } |