From c3df3a12aa88739e303340ccd7436d467b4662d2 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 16 Mar 2022 11:03:57 +0100 Subject: Fixed msys2 build warnings and re-activated CI Mingw64 build. * Removed Visual Studio leftovers. Maintaining an autotools project with VS integration requires some additional overhead. Signed-off-by: Toni Uhlig Signed-off-by: lns --- src/lib/protocols/mail_imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/protocols/mail_imap.c') diff --git a/src/lib/protocols/mail_imap.c b/src/lib/protocols/mail_imap.c index 12d652ecb..6877a61cf 100644 --- a/src/lib/protocols/mail_imap.c +++ b/src/lib/protocols/mail_imap.c @@ -178,7 +178,7 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, if(user) { char *pwd; - snprintf(flow->l4.tcp.ftp_imap_pop_smtp.username, + ndpi_snprintf(flow->l4.tcp.ftp_imap_pop_smtp.username, sizeof(flow->l4.tcp.ftp_imap_pop_smtp.username), "%s", user); @@ -186,7 +186,7 @@ void ndpi_search_mail_imap_tcp(struct ndpi_detection_module_struct *ndpi_struct, pwd = strtok_r(NULL, " \"\r\n", &saveptr); if(pwd) { - snprintf(flow->l4.tcp.ftp_imap_pop_smtp.password, + ndpi_snprintf(flow->l4.tcp.ftp_imap_pop_smtp.password, sizeof(flow->l4.tcp.ftp_imap_pop_smtp.password), "%s", pwd); } -- cgit v1.2.3