]> granicus.if.org Git - nethack/commitdiff
mail test / warnings in save.c
authorkeni <keni>
Thu, 29 Dec 2011 20:23:00 +0000 (20:23 +0000)
committerkeni <keni>
Thu, 29 Dec 2011 20:23:00 +0000 (20:23 +0000)
src/save.c

index 2e743037f961d82b73528d110dbe691d755f71cb..9e9078310d058e3063dfed541fa545af2f843281 100644 (file)
@@ -271,7 +271,7 @@ dosave0()
 #endif
                ofd = open_levelfile(ltmp, whynot);
                if (ofd < 0) {
-                   HUP pline("%s", whynot);
+                   HUP pline1(whynot);
                    (void) close(fd);
                    (void) delete_savefile();
                    HUP Strcpy(killer.name, whynot);
@@ -399,7 +399,7 @@ savestateinlock()
                 */
                fd = open_levelfile(0, whynot);
                if (fd < 0) {
-                   pline("%s", whynot);
+                   pline1(whynot);
                    pline("Probably someone removed it.");
                    Strcpy(killer.name, whynot);
                    done(TRICKED);
@@ -411,7 +411,7 @@ savestateinlock()
                    Sprintf(whynot,
                            "Level #0 pid (%d) doesn't match ours (%d)!",
                            hpid, hackpid);
-                   pline("%s", whynot);
+                   pline1(whynot);
                    Strcpy(killer.name, whynot);
                    done(TRICKED);
                }
@@ -419,7 +419,7 @@ savestateinlock()
 
                fd = create_levelfile(0, whynot);
                if (fd < 0) {
-                   pline("%s", whynot);
+                   pline1(whynot);
                    Strcpy(killer.name, whynot);
                    done(TRICKED);
                    return;