Searched refs:hex_buf (Results 1 – 1 of 1) sorted by relevance
689 char *hex_buf = (char *)malloc(hex_len + 1); in add_bytes_hex() local690 if (hex_buf == NULL) { in add_bytes_hex()695 snprintf(&hex_buf[i * 2], 3, "%02x", bytes[i]); in add_bytes_hex()697 hex_buf[hex_len] = '\0'; in add_bytes_hex()700 json_object_new_string_len(hex_buf, in add_bytes_hex()702 free(hex_buf); in add_bytes_hex()