diff --git a/third_party/confetti/prscfg.c b/third_party/confetti/prscfg.c
index 98358885e3d38a5cc88ad13da4c0b5e204034cc5..65653532140994507f48532012a9eed0ac51dcda 100644
--- a/third_party/confetti/prscfg.c
+++ b/third_party/confetti/prscfg.c
@@ -1952,7 +1952,7 @@ YYSTYPE yylval;
 
 static int
 prscfg_yyerror(prscfg_yyscan_t yyscanner, char *msg) {
-	out_warning(CNF_SYNTAXERROR, "gram_yyerror: %s at line %d\n", msg, prscfgGetLineNo(yyscanner));
+	out_warning(CNF_SYNTAXERROR, "gram_yyerror: %s at line %d", msg, prscfgGetLineNo(yyscanner));
 	return 0;
 }
 
@@ -4343,7 +4343,7 @@ void prscfg_yyfree (void * ptr , yyscan_t yyscanner)
 
 static int
 scan_yyerror(char *msg, int lineno) {
-    out_warning(CNF_SYNTAXERROR, "scan_yyerror: %s at line %d\n", msg, lineno);
+    out_warning(CNF_SYNTAXERROR, "scan_yyerror: %s at line %d", msg, lineno);
 	return 0;
 }