Skip to content

Commit

Permalink
core: udp server - cast printed debug chars to unsigned
Browse files Browse the repository at this point in the history
- reported by GH #1403
  • Loading branch information
miconda committed Jan 17, 2018
1 parent 74c9f53 commit 64a391a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/udp_server.c
Expand Up @@ -479,7 +479,7 @@ int udp_rcv_loop()
if(isprint(buf[i])) {
printbuf[j++] = buf[i];
} else {
l = snprintf(printbuf+j, 6, " %02X ", buf[i]);
l = snprintf(printbuf+j, 6, " %02X ", (unsigned char)buf[i]);
if(l<0 || l>=6) {
LM_ERR("print buffer building failed (%d/%d/%d)\n",
l, j, i);
Expand Down

0 comments on commit 64a391a

Please sign in to comment.