From 7d64a8e7d7dbca520fc3c7fe041d21ad603de3a3 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 12 Mar 2025 07:51:53 -0400 Subject: [PATCH] MT#59962 UACAuth: add explicit cast to int Add cast to make it clear that this is an intentional truncation of a time_t to an int. Change-Id: I676f7eb30d4016a531e94975fb230c2d7c9aa9f7 Warned-by: Coverity --- core/plug-in/uac_auth/UACAuth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/plug-in/uac_auth/UACAuth.cpp b/core/plug-in/uac_auth/UACAuth.cpp index 3e56d621..6ebbd4c9 100644 --- a/core/plug-in/uac_auth/UACAuth.cpp +++ b/core/plug-in/uac_auth/UACAuth.cpp @@ -606,7 +606,7 @@ string UACAuth::calcNonce() { HASH RespHash; time_t now = time(NULL); - result = int2hex(now); + result = int2hex(static_cast(now)); MD5Init(&Md5Ctx); w_MD5Update(&Md5Ctx, result);