From: nhmall Date: Tue, 2 Jun 2015 21:20:23 +0000 (-0400) Subject: win32 raw_printf needs better formatting to read X-Git-Tag: NetHack-3.6.0_RC01~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab57384a9958d0bb2146e00b38390a68c9b23e33;p=nethack win32 raw_printf needs better formatting to read Changes to be committed: modified: src/options.c Noticed while testing status bits, the meaningful part of the message is truncated on WIN32. --- diff --git a/src/options.c b/src/options.c index bc34eee3b..b8aa76833 100644 --- a/src/options.c +++ b/src/options.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 options.c $NHDT-Date: 1433212185 2015/06/02 02:29:45 $ $NHDT-Branch: status_hilite $:$NHDT-Revision: 1.213 $ */ +/* NetHack 3.6 options.c $NHDT-Date: 1433280017 2015/06/02 21:20:17 $ $NHDT-Branch: status_hilite $:$NHDT-Revision: 1.215 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -902,10 +902,21 @@ const char *opts; #endif if (from_file) - raw_printf("Bad syntax in OPTIONS in %s: %s.", lastconfigfile, opts); + raw_printf("Bad syntax in OPTIONS in %s: %s%s.\n", lastconfigfile, +#ifdef WIN32 + "\n", +#else + "", +#endif + opts); else - raw_printf("Bad syntax in NETHACKOPTIONS: %s.", opts); - + raw_printf("Bad syntax in NETHACKOPTIONS: %s%s.\n", +#ifdef WIN32 + "\n", +#else + "", +#endif + opts); wait_synch(); }