rfbserver: get rid of inttypes.h again

pull/3/head
Christian Beier 6 years ago
parent b0c77391e6
commit 449cbe9028
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -88,8 +88,6 @@
#include <errno.h> #include <errno.h>
/* strftime() */ /* strftime() */
#include <time.h> #include <time.h>
/* PRIu32 */
#include <inttypes.h>
#ifdef LIBVNCSERVER_WITH_WEBSOCKETS #ifdef LIBVNCSERVER_WITH_WEBSOCKETS
#include "rfbssl.h" #include "rfbssl.h"
@ -2586,8 +2584,7 @@ rfbProcessClientNormalMessage(rfbClientPtr cl)
* prevent from a denial-of-service by allocating to much memory in * prevent from a denial-of-service by allocating to much memory in
* the server. */ * the server. */
if (msg.cct.length > 1<<20) { if (msg.cct.length > 1<<20) {
rfbLog("rfbClientCutText: too big cut text length requested: %" PRIu32 "\n", rfbLog("rfbClientCutText: too big cut text length requested: %u B > 1 MB\n", (unsigned int)msg.cct.length);
msg.cct.length);
rfbCloseClient(cl); rfbCloseClient(cl);
return; return;
} }

Loading…
Cancel
Save