mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-09 08:12:54 -05:00
dnstap debug tool, document string change more clearly.
This commit is contained in:
parent
5b61afd38c
commit
85c4e58831
1 changed files with 3 additions and 0 deletions
|
|
@ -474,8 +474,11 @@ static char* q_of_msg(ProtobufCBinaryData message)
|
|||
if(sldns_wire2str_rrquestion_buf(message.data+12, message.len-12,
|
||||
buf, sizeof(buf)) != 0) {
|
||||
/* remove trailing newline, tabs to spaces */
|
||||
/* remove the newline: */
|
||||
if(buf[0] != 0) buf[strlen(buf)-1]=0;
|
||||
/* remove first tab (before type) */
|
||||
if(strrchr(buf, '\t')) *strrchr(buf, '\t')=' ';
|
||||
/* remove second tab (before class) */
|
||||
if(strrchr(buf, '\t')) *strrchr(buf, '\t')=' ';
|
||||
return strdup(buf);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue