aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-27 09:48:55 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-27 09:48:55 +0200
commit2148260d742663448a8fd7ff950d3d8e7468ccd5 (patch)
tree5a1c1a631635ea5fbd976698720bd5e55538cd28
parentc39096a5deff3da19d474658193ca91659d12dd4 (diff)
downloadfetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.tar.gz
fetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.tar.bz2
fetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.zip
Report unknown ODMR error in full, escaping unprintables.
-rw-r--r--odmr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/odmr.c b/odmr.c
index 907e0092..9efafe08 100644
--- a/odmr.c
+++ b/odmr.c
@@ -27,6 +27,7 @@
#include <unistd.h>
#include "i18n.h"
#include "fetchmail.h"
+#include "sdump.h"
#include "smtp.h"
#include "socket.h"
@@ -126,9 +127,12 @@ static int odmr_getrange(int sock, struct query *ctl, const char *id,
report(stderr, GT_("Authentication required.\n"));
return(PS_AUTHFAIL);
- default:
- report(stderr, GT_("Unknown ODMR error %d\n"), atoi(buf));
- return(PS_PROTOCOL);
+ default: {
+ char *t = sdump(buf, strlen(buf));
+ report(stderr, GT_("Unknown ODMR error \"%s\"\n"), t);
+ xfree(t);
+ return(PS_PROTOCOL);
+ }
}
/*