X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Frtos%2Frtos.c;fp=src%2Frtos%2Frtos.c;h=448c49c060cc96f1690c09ce4cc5dbda03d9e28a;hp=4c99ad2333b17c53e4f0f772be0cb7fef2a4461e;hb=674141e8a7a6413cb803d90c2a20150260015f81;hpb=10aeff925936a43e873acfd0068b1eea03781051 diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 4c99ad2333..448c49c060 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -213,7 +213,7 @@ int rtos_qsymbol(struct connection *connection, char const *packet, int packet_s goto done; /* Decode any symbol name in the packet*/ - int len = unhexify(cur_sym, strchr(packet + 8, ':') + 1, strlen(strchr(packet + 8, ':') + 1)); + size_t len = unhexify((uint8_t *)cur_sym, strchr(packet + 8, ':') + 1, strlen(strchr(packet + 8, ':') + 1)); cur_sym[len] = 0; if ((strcmp(packet, "qSymbol::") != 0) && /* GDB is not offering symbol lookup for the first time */