diff --git a/vlib/clipboard/clipboard_linux.c.v b/vlib/clipboard/clipboard_linux.c.v index 2207a7989f..71320786a8 100644 --- a/vlib/clipboard/clipboard_linux.c.v +++ b/vlib/clipboard/clipboard_linux.c.v @@ -309,7 +309,9 @@ fn (mut cb Clipboard) start_listener(){ C.XDeleteProperty(event.xselection.display, event.xselection.requestor, event.xselection.property) if cb.is_supported_target(prop.actual_type) { cb.got_text = true - cb.text = byteptr(prop.data).vstring() //TODO: return byteptr to support other mimetypes + unsafe { + cb.text = byteptr(prop.data).vstring() //TODO: return byteptr to support other mimetypes + } } cb.mutex.unlock() }