]> Pileus Git - ~andy/fetchmail/blobdiff - sdump.c
Rediff patch.
[~andy/fetchmail] / sdump.c
diff --git a/sdump.c b/sdump.c
index 6edf0a66d7f37f7225895c4317b7b0c6c9ff2c75..3748672ade3fcbe715c29f4ecab29f2b4c6a24d0 100644 (file)
--- a/sdump.c
+++ b/sdump.c
@@ -36,7 +36,7 @@ char *sdump(const char *in, size_t len)
        if (isprint((unsigned char)in[i])) {
            *(oi++) = in[i];
        } else {
-           oi += sprintf(oi, "\\x%02X", in[i]);
+           oi += sprintf(oi, "\\x%02X", (unsigned char)in[i]);
        }
     }
     *oi = '\0';