summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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++;