summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/debugserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debugserver.c b/src/debugserver.c
index ceaf4a9..c517017 100644
--- a/src/debugserver.c
+++ b/src/debugserver.c
@@ -599,8 +599,8 @@ LIBIMOBILEDEVICE_API debugserver_error_t debugserver_client_set_argv(debugserver
char *p = m;
char *q = (char*)argv[i];
while (*q) {
- *p++ = debugserver_int2hex(*q >> 4);
- *p++ = debugserver_int2hex(*q & 0xf);
+ *p++ = DEBUGSERVER_HEX_ENCODE_FIRST_BYTE(*q);
+ *p++ = DEBUGSERVER_HEX_ENCODE_SECOND_BYTE(*q);
q++;
}