diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c index 7eb0893a..eb11d041 100644 --- a/xrdp/xrdp_font.c +++ b/xrdp/xrdp_font.c @@ -287,13 +287,13 @@ xrdp_font_create(struct xrdp_wm *wm, unsigned int dpi) in_uint8s(s, 6); datasize = FONT_DATASIZE(f); - if (datasize < 0 || datasize > 512) + if (datasize > 512) { /* shouldn't happen */ LOG(LOG_LEVEL_ERROR, "xrdp_font_create: " "datasize for U+%x wrong " - "width %d, height %d, datasize %d", + "width %d, height %d, datasize %u", char_count, f->width, f->height, datasize); break; }