Skip to content

Commit

Permalink
ndpiReader: fix print of flow payload (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi authored May 4, 2023
1 parent a11ddd2 commit 02a2c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,12 +1746,12 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->flow_payload && (flow->flow_payload_len > 0)) {
u_int i;

printf("[Payload: ");
fprintf(out, "[Payload: ");

for(i=0; i<flow->flow_payload_len; i++)
printf("%c", isspace(flow->flow_payload[i]) ? '.' : flow->flow_payload[i]);
fprintf(out, "%c", isspace(flow->flow_payload[i]) ? '.' : flow->flow_payload[i]);

printf("]");
fprintf(out, "]");
}

fprintf(out, "\n");
Expand Down

0 comments on commit 02a2c80

Please sign in to comment.