Don't generate UTF-8 into sst.doc.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index f65a2a5e70aaabd347b0a44ce0920b63238a1080..c8ac356eda049da1ea740374e472d98172f8773b 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -348,8 +348,8 @@ int main(int argc, char **argv) {
        int hitme;\r
        char ch;\r
 \r
-       prelim(); \r
        iostart();\r
+       prelim(); \r
        line[0] = '\0';\r
        if (argc > 1) {\r
                while (--argc > 0) {\r
@@ -380,7 +380,8 @@ int main(int argc, char **argv) {
                if (!ja()) break;\r
        }\r
        skip(1);\r
-       prout("May the Great Bird of the Galaxy roost upon your home planet.");\r
+       ioend();\r
+       puts("May the Great Bird of the Galaxy roost upon your home planet.");\r
 }\r
 \r
 \r
@@ -479,7 +480,6 @@ int scan(void) {
                        return IHEOL;\r
                }\r
                getline(line, sizeof(line));\r
-               line[strlen(line)-1] = '\0';\r
                linep = line;\r
        }\r
        // Skip leading white space\r