diff --git a/terminalemulator.d b/terminalemulator.d index dcf4abd..3b13f50 100644 --- a/terminalemulator.d +++ b/terminalemulator.d @@ -397,7 +397,8 @@ class TerminalEmulator { } } - sendHyperlinkData(buffer[0 .. end - start], number); + if((cast(size_t) (end - start)) <= buffer.length) + sendHyperlinkData(buffer[0 .. end - start], number); } } }