diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-05-04 11:52:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-04 11:52:48 +0200 |
commit | 02a2c804530e21f3fd9ba05e68009eb64b35ba1b (patch) | |
tree | cb2f8ebe0c11910c306eb7c4c2e83301638b893f /example/ndpiReader.c | |
parent | a11ddd2dc434fd5cf251f6d9254a5c989b99dd47 (diff) |
ndpiReader: fix print of flow payload (#1960)
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index bb5225f27..e51eea8f5 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -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"); |