[warnings] type casts

This commit is contained in:
akallabeth 2023-11-24 09:44:39 +01:00 committed by akallabeth
parent 5dd12c5b1b
commit 6b9245849c
3 changed files with 3 additions and 3 deletions

View File

@ -2236,7 +2236,7 @@ rdpRdp* rdp_new(rdpContext* context)
rdp->log = WLog_Get(RDP_TAG);
WINPR_ASSERT(rdp->log);
_snprintf(rdp->log_context, sizeof(rdp->log_context), "%p", context);
_snprintf(rdp->log_context, sizeof(rdp->log_context), "%p", (void*)context);
WLog_SetContext(rdp->log, NULL, rdp->log_context);
InitializeCriticalSection(&rdp->critical);

View File

@ -82,7 +82,7 @@ UINT32 gdi_GetBkColor(HGDI_DC hdc)
}
/**
* @brief Set the current background color.\n
* @brief Set the current background color.
* msdn{dd162964}
*
* @param hdc device color

View File

@ -1299,7 +1299,7 @@ WINPR_ATTR_FORMAT_ARG(2, 0)
static void print_entry(FILE* fp, WINPR_FORMAT_ARG const char* fmt, const char* what, size_t size)
{
char buffer[32] = { 0 };
strncpy(buffer, what, MIN(size, sizeof(buffer)));
strncpy(buffer, what, MIN(size, sizeof(buffer) - 1));
fprintf(fp, fmt, buffer);
}