diff options
-rw-r--r-- | pttbbs/daemon/logind/logind.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pttbbs/daemon/logind/logind.c b/pttbbs/daemon/logind/logind.c index 79813856..a93f0f2b 100644 --- a/pttbbs/daemon/logind/logind.c +++ b/pttbbs/daemon/logind/logind.c @@ -737,6 +737,13 @@ load_text_screen_file(const char *filename, char **pptr) *(p-1)= '\r'; *p ++ = '\n'; } + // Remove \n from last line (breaks full screen) + if (max_lines == 0) { + *(p-2) = '\0'; + p -= 2; + psz += 2; + } + } fclose(fp); } |