aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-10-11 00:14:27 +0200
committerLuca Deri <deri@ntop.org>2023-10-11 00:14:27 +0200
commita76b9d151f58e000980abffc29b0192b08c5bb4e (patch)
tree0e7c713cb4b0223524de00086d2d6c342e3beeb5
parent1366d9415678a44456f4f8e38adef7114a106273 (diff)
Serialization fix
-rw-r--r--src/lib/ndpi_serializer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_serializer.c b/src/lib/ndpi_serializer.c
index 0758c7272..9a27add4d 100644
--- a/src/lib/ndpi_serializer.c
+++ b/src/lib/ndpi_serializer.c
@@ -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);