]> granicus.if.org Git - nethack/commitdiff
win32 raw_printf needs better formatting to read
authornhmall <mjnh@persona.ca>
Tue, 2 Jun 2015 21:20:23 +0000 (17:20 -0400)
committernhmall <mjnh@persona.ca>
Tue, 2 Jun 2015 21:20:23 +0000 (17:20 -0400)
 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

index bc34eee3b265b744a0226c568e0646caa538ab91..b8aa768331485d1ee7fee392653b6907310b71d3 100644 (file)
@@ -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();
 }