Deal with warnings raised by -Wformat-security.
[gnushogi.git] / gnushogi / book.c
index cadefa3..d5fa7ac 100644 (file)
@@ -290,8 +290,7 @@ BVerifyMove(char *s, unsigned short *mv, int moveno)
             /* Illegal move in check */
 #if !defined QUIETBOOKGEN
             /* 077: "Illegal move (in check) %s" */
-            printf(CP[77]);
-            printf("\n");
+            puts(CP[77]);
             bkdisplay(s, cnt, moveno);
 #endif
             return false;