summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/daemon/logind/logind.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/pttbbs/daemon/logind/logind.c b/pttbbs/daemon/logind/logind.c
index 3f9cd995..a7962681 100644
--- a/pttbbs/daemon/logind/logind.c
+++ b/pttbbs/daemon/logind/logind.c
@@ -746,14 +746,14 @@ load_text_screen_file(const char *filename, char **pptr)
// convert \n to \r\n
*(p-1)= '\r';
*p ++ = '\n';
- }
- // Remove \n from last line (breaks full screen)
- if (max_lines == 0) {
- *(p-2) = '\0';
- p -= 2;
- psz += 2;
- }
+ // Remove \n from last line (breaks full screen)
+ if (max_lines == 0) {
+ *(p-2) = '\0';
+ p -= 2;
+ psz += 2;
+ }
+ }
}
fclose(fp);
}