From 084653cfc2986cd52ffd42b347f63ca3391e6ece Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 4 Feb 2019 16:01:35 +0100 Subject: Fix compiler error (From using uint8[].copy()) --- xmpp-vala/src/core/stanza_reader.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src') diff --git a/xmpp-vala/src/core/stanza_reader.vala b/xmpp-vala/src/core/stanza_reader.vala index 43c453ff..72aa0b5f 100644 --- a/xmpp-vala/src/core/stanza_reader.vala +++ b/xmpp-vala/src/core/stanza_reader.vala @@ -257,8 +257,8 @@ public class StanzaReader { ns_state = ns_state.pop(); return res; } catch (XmlError e) { - uint8[] buffer_cpy = buffer.copy(); - buffer_cpy += '\0'; + uint8[] buffer_cpy = new uint8[buffer.length + 1]; + Memory.copy(buffer_cpy, buffer, buffer.length); warning("XmlError at: %s".printf((string)buffer_cpy) + "\n"); throw e; } -- cgit v1.2.3-70-g09d2