Add ndpi_json_string_escape to the API

This commit is contained in:
Alfredo Cardigliano
2022-04-26 12:25:34 +02:00
parent d5005f584c
commit e8d81123cc
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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;