From 256c7fa78826e670ec3b99f8c78937c44b58f43e Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 7 Aug 2023 08:38:07 -0400 Subject: [PATCH] Fix character specifier in validator format string Fixes https://gitlab.com/kicad/code/kicad/-/issues/15367 --- common/validators.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/validators.cpp b/common/validators.cpp index 822cb1305d..65e6c35101 100644 --- a/common/validators.cpp +++ b/common/validators.cpp @@ -407,7 +407,7 @@ bool FIELD_VALIDATOR::Validate( wxWindow* aParent ) else if( excludeChar == ' ' ) badCharsFound.Add( _( "space" ) ); else - badCharsFound.Add( wxString::Format( wxT( "'%s'" ), excludeChar ) ); + badCharsFound.Add( wxString::Format( wxT( "'%c'" ), excludeChar ) ); } } #else