From ab57384a9958d0bb2146e00b38390a68c9b23e33 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 2 Jun 2015 17:20:23 -0400 Subject: [PATCH] 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. --- src/options.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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(); } -- 2.50.1