From: keni Date: Thu, 29 Dec 2011 20:23:00 +0000 (+0000) Subject: mail test / warnings in save.c X-Git-Tag: MOVE2GIT~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbc1031d4ed777c0c146a9a7e65943162afde162;p=nethack mail test / warnings in save.c --- diff --git a/src/save.c b/src/save.c index 2e743037f..9e9078310 100644 --- a/src/save.c +++ b/src/save.c @@ -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;