summaryrefslogtreecommitdiffstats
path: root/pop.c
diff options
context:
space:
mode:
authorTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>2017-06-01 13:33:21 -0700
committerTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>2017-06-01 13:33:21 -0700
commitcd3b603d9ebf5c305802b33d789ca610141e869b (patch)
treead15733091409806ebf7fdd844e93c8c57d99a95 /pop.c
parente7c88e4b8d0513967c220e419cbe76b5a575300d (diff)
Fix "format string is not a string literal" warnings. (closes #3949)
Mutt calls msgfmt with '-c' to verify that translation format strings match, but it is still safer to indirect strings with no formatting through %s.
Diffstat (limited to 'pop.c')
-rw-r--r--pop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop.c b/pop.c
index 8e5d8fea..ecfd8d7c 100644
--- a/pop.c
+++ b/pop.c
@@ -98,7 +98,7 @@ static int pop_read_header (POP_DATA *pop_data, HEADER *h)
pop_data->cmd_top = 0;
dprint (1, (debugfile, "pop_read_header: unset TOP capability\n"));
- snprintf (pop_data->err_msg, sizeof (pop_data->err_msg),
+ snprintf (pop_data->err_msg, sizeof (pop_data->err_msg), "%s",
_("Command TOP is not supported by server."));
}
}
@@ -272,7 +272,7 @@ static int pop_fetch_headers (CONTEXT *ctx)
pop_data->cmd_uidl = 0;
dprint (1, (debugfile, "pop_fetch_headers: unset UIDL capability\n"));
- snprintf (pop_data->err_msg, sizeof (pop_data->err_msg),
+ snprintf (pop_data->err_msg, sizeof (pop_data->err_msg), "%s",
_("Command UIDL is not supported by server."));
}
}