]> granicus.if.org Git - nethack/commitdiff
beta bit
authornhmall <nhmall@nethack.org>
Thu, 17 May 2018 03:23:08 +0000 (23:23 -0400)
committernhmall <nhmall@nethack.org>
Thu, 17 May 2018 03:23:08 +0000 (23:23 -0400)
Display the word beta in a better spot on the line

util/makedefs.c

index 53fb4230acdeb624fcb2a03d7c0bbe6e1cb0e684..a5dc9cd6f0db897edad54aa73b009dc1c9c5737b 100644 (file)
@@ -1192,18 +1192,22 @@ char *outbuf;
 const char *build_date;
 {
     char subbuf[64], versbuf[64];
+    char betabuf[64];
+
+#ifdef BETA
+    Strcpy(betabuf, "Beta");
+#else
+    betabuf[0] = '\0';
+#endif
 
     subbuf[0] = '\0';
 #ifdef PORT_SUB_ID
     subbuf[0] = ' ';
     Strcpy(&subbuf[1], PORT_SUB_ID);
 #endif
-#ifdef BETA
-    Strcat(subbuf, " Beta");
-#endif
 
-    Sprintf(outbuf, "%s NetHack%s Version %s - last %s %s.", PORT_ID,
-            subbuf, version_string(versbuf, "."),
+    Sprintf(outbuf, "%s NetHack%s Version %s %s - last %s %s.", PORT_ID,
+            subbuf, version_string(versbuf, "."), betabuf,
             date_via_env ? "revision" : "build", build_date);
     return outbuf;
 }