From bb68948d0f203e77ba88c888b15ef61046058c8d Mon Sep 17 00:00:00 2001 From: zhangchuangnankai <30925650+zhangchuangnankai@users.noreply.github.com> Date: Fri, 27 Sep 2019 17:33:09 +0800 Subject: [PATCH] Update procwatch.c miss a ')' --- src/procwatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/procwatch.c b/src/procwatch.c index 14e2dd7a..9f5a7f63 100644 --- a/src/procwatch.c +++ b/src/procwatch.c @@ -390,7 +390,7 @@ void get_process_info(HANDLE hProcessSnap, unsigned long pid, host_flow_t *recor record->hash = calloc(1, 2 * SHA256_DIGEST_LENGTH + 1); if (record->hash != NULL) { if (prev_hash) { - strncpy_s(record->hash , 2 * SHA256_DIGEST_LENGTH + 1, prev_hash, strnlen_s(prev_hash, PROC_PATH_LEN); + strncpy_s(record->hash , 2 * SHA256_DIGEST_LENGTH + 1, prev_hash, strnlen_s(prev_hash, PROC_PATH_LEN)); } else { calculate_sha256_hash(record->full_path, record->hash); }