mirror of https://github.com/FreeRDP/FreeRDP
[warnings] type casts
This commit is contained in:
parent
5dd12c5b1b
commit
6b9245849c
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue