diff options
Diffstat (limited to 'mbbsd/screen.c')
-rw-r--r-- | mbbsd/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c index 8f54f6cc..51e8a559 100644 --- a/mbbsd/screen.c +++ b/mbbsd/screen.c @@ -562,7 +562,9 @@ inansistr(char *str, int n) *str = 0; if (!slp) return 0; + slp->data[slp->len] = 0; strncpy(str, (char*)slp->data, n); + str[n] = 0; return strlen(str); } |