summaryrefslogtreecommitdiff
path: root/source3/lib/cbuf.c
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-10-21 10:49:45 +0200
committerMichael Adam <obnox@samba.org>2011-11-25 13:24:34 +0100
commit90eb2eb1789e430b4ad8c849d7df99f5d8315a06 (patch)
tree3ada203767d9e87d38d754b3c98415ea69bfd227 /source3/lib/cbuf.c
parent2d9b4015d6835fa9b83f9945cb94ca289c5ab5c7 (diff)
downloadsamba-90eb2eb1789e430b4ad8c849d7df99f5d8315a06.tar.gz
samba-90eb2eb1789e430b4ad8c849d7df99f5d8315a06.tar.bz2
samba-90eb2eb1789e430b4ad8c849d7df99f5d8315a06.zip
s3:lib fix output of hex escapes > 0x7F with cbuf_print_quoted
(cherry picked from commit a1fcb7e37a23dcc035686486d4afe32a67082ae1)
Diffstat (limited to 'source3/lib/cbuf.c')
-rw-r--r--source3/lib/cbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/cbuf.c b/source3/lib/cbuf.c
index 42353f8f64..611aa80609 100644
--- a/source3/lib/cbuf.c
+++ b/source3/lib/cbuf.c
@@ -306,7 +306,7 @@ int cbuf_print_quoted(cbuf* ost, const char* s, size_t len)
if (isprint(*s) && ((*s == ' ') || !isspace(*s))) {
ret = cbuf_putc(ost, *s);
} else {
- ret = cbuf_printf(ost, "\\%02x", *s);
+ ret = cbuf_printf(ost, "\\%02x", (uchar)*s);
}
}
s++;