Skip to content

Commit

Permalink
Serialization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Oct 10, 2023
1 parent 1366d94 commit a76b9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ndpi_serializer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,10 +1512,10 @@ int ndpi_serialize_string_int32(ndpi_serializer *_serializer,
}

ndpi_serialize_csv_pre(serializer);
needed--;
/* needed--; */

rc = ndpi_snprintf((char*)&serializer->buffer.data[serializer->status.buffer.size_used],
needed, "%u", value);
needed, "%u", value);

if(rc < 0 || (u_int)rc >= buff_diff)
return(-1);
Expand Down

0 comments on commit a76b9d1

Please sign in to comment.