From 1c8d43cbdf0fc01a8f05acfbf55b805a83da34bb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 8 Sep 2015 15:41:20 +0100 Subject: [PATCH] Fix build after "ui/vnc: limit client_cut_text msg payload size" That backport (which also erroneously refers to ui/vnc.c rather than vnc.c in its commit message) broke the build because we do not have `error_report'. Use fprintf to stderr, like the rest of the file. Signed-off-by: Ian Jackson --- vnc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnc.c b/vnc.c index 86c2ff4c..48e5c463 100644 --- a/vnc.c +++ b/vnc.c @@ -1769,8 +1769,8 @@ static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) uint32_t v; v = read_u32(data, 4); if (v > (1 << 20)) { - error_report("vnc: client_cut_text msg payload has %u bytes" - " which exceeds our limit of 1MB.", v); + fprintf(stderr, "vnc: client_cut_text msg payload has %u bytes" + " which exceeds our limit of 1MB.\n", v); vnc_client_error(vs); break; } -- 2.39.5