From e8d81123cca48cf1d36fd2dbb33068878c5eb8fa Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Tue, 26 Apr 2022 12:25:34 +0200 Subject: Add ndpi_json_string_escape to the API --- src/lib/ndpi_serializer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/ndpi_serializer.c') diff --git a/src/lib/ndpi_serializer.c b/src/lib/ndpi_serializer.c index b9294fa72..d560e5b9e 100644 --- a/src/lib/ndpi_serializer.c +++ b/src/lib/ndpi_serializer.c @@ -87,7 +87,7 @@ static int ndpi_is_number(const char *str, u_int32_t str_len) { * It is recommended to provide a destination buffer (dst) which is as large as double the source buffer (src) at least. * Upon successful return, these functions return the number of characters printed (excluding the null byte used to terminate the string). */ -static int ndpi_json_string_escape(const char *src, int src_len, char *dst, int dst_max_len) { +int ndpi_json_string_escape(const char *src, int src_len, char *dst, int dst_max_len) { char c = 0; int i, j = 0; -- cgit v1.2.3