summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-02 08:45:03 +0200
committerMichael Vogt <mvo@debian.org>2013-07-02 08:45:03 +0200
commit4ff028826ef0fa500b7717415be4109c2ac1da1d (patch)
tree97ce6fd531ddec75715c19bbe029f1850759eac6 /cmdline
parent0abed86eb392990a5a4995fcf7ca70601d40efd1 (diff)
fix format string error
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-cdrom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc
index 3f53e16ee..c153cca85 100644
--- a/cmdline/apt-cdrom.cc
+++ b/cmdline/apt-cdrom.cc
@@ -162,7 +162,7 @@ bool DoAdd(CommandLine &)
if (count == 0) {
res = cdrom.Add(&log);
if (res == false) {
- _error->Error(_(W_NO_CDROM_FOUND));
+ _error->Error("%s", _(W_NO_CDROM_FOUND));
}
}
@@ -192,7 +192,7 @@ bool DoIdent(CommandLine &)
if (count == 0) {
res = cdrom.Ident(ident, &log);
if (res == false) {
- _error->Error(_(W_NO_CDROM_FOUND));
+ _error->Error("%s", _(W_NO_CDROM_FOUND));
}
}
return res;