]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen-traditional.git/commitdiff
Fix build after "ui/vnc: limit client_cut_text msg payload size"
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 8 Sep 2015 14:41:20 +0000 (15:41 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 8 Sep 2015 14:42:31 +0000 (15:42 +0100)
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 <Ian.Jackson@eu.citrix.com>
vnc.c

diff --git a/vnc.c b/vnc.c
index 86c2ff4c97bb7dbb48607aee980a01af2a16670e..48e5c463aebe8815c533ca12c7f6249f8a50ff2c 100644 (file)
--- 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;
            }