summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@hpjansson.org>2023-10-05 15:55:47 +0200
committerHans Petter Jansson <hpj@hpjansson.org>2023-10-05 15:55:47 +0200
commitb226bf5ea18de6ea6c61eb06fec93edfe0cbc85e (patch)
tree4d0891636ea3c1b93c0e2a57e7b13e25f74d93e8
parentec04c7df45d2974103108813549502e322ae7c7c (diff)
validate: Properly escape field codes in messages
Fixes #71.
-rw-r--r--src/validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/validate.c b/src/validate.c
index 31e32d4..7846a0e 100644
--- a/src/validate.c
+++ b/src/validate.c
@@ -1333,8 +1333,8 @@ handle_exec_key (kf_validator *kf,
if (flag) {
if (file_uri) {
print_fatal (kf, "value \"%s\" for key \"%s\" in group \"%s\" "
- "may contain at most one \"%f\", \"%u\", "
- "\"%F\" or \"%U\" field code\n",
+ "may contain at most one \"%%f\", \"%%u\", "
+ "\"%%F\" or \"%%U\" field code\n",
value, locale_key, kf->current_group);
retval = FALSE;
}
@@ -1348,8 +1348,8 @@ handle_exec_key (kf_validator *kf,
if (flag) {
if (file_uri) {
print_fatal (kf, "value \"%s\" for key \"%s\" in group \"%s\" "
- "may contain at most one \"%f\", \"%u\", "
- "\"%F\" or \"%U\" field code\n",
+ "may contain at most one \"%%f\", \"%%u\", "
+ "\"%%F\" or \"%%U\" field code\n",
value, locale_key, kf->current_group);
retval = FALSE;
}