summaryrefslogtreecommitdiff
path: root/channels/iax2/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/iax2/parser.c')
-rw-r--r--channels/iax2/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/iax2/parser.c b/channels/iax2/parser.c
index f1fc8f82d..2a3eabf41 100644
--- a/channels/iax2/parser.c
+++ b/channels/iax2/parser.c
@@ -111,7 +111,7 @@ static void dump_string_hex(char *output, int maxlen, void *value, int len)
int i = 0;
while (len-- && (i + 1) * 4 < maxlen) {
- sprintf(output + (4 * i), "\\x%2.2x", (unsigned)*((unsigned char *)value + i));
+ sprintf(output + (4 * i), "\\x%02hhx", *((unsigned char *)value + i));
i++;
}
}