diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-04-27 09:48:55 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-04-27 09:48:55 +0200 |
commit | 2148260d742663448a8fd7ff950d3d8e7468ccd5 (patch) | |
tree | 5a1c1a631635ea5fbd976698720bd5e55538cd28 /odmr.c | |
parent | c39096a5deff3da19d474658193ca91659d12dd4 (diff) | |
download | fetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.tar.gz fetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.tar.bz2 fetchmail-2148260d742663448a8fd7ff950d3d8e7468ccd5.zip |
Report unknown ODMR error in full, escaping unprintables.
Diffstat (limited to 'odmr.c')
-rw-r--r-- | odmr.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); + } } /* |