From 90eb2eb1789e430b4ad8c849d7df99f5d8315a06 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Fri, 21 Oct 2011 10:49:45 +0200 Subject: s3:lib fix output of hex escapes > 0x7F with cbuf_print_quoted (cherry picked from commit a1fcb7e37a23dcc035686486d4afe32a67082ae1) --- source3/lib/cbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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++; -- cgit