From 0907817186a368b4342442e9faea40c579ab83da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Dur=C3=A1n?= Date: Sat, 14 Mar 2020 11:18:35 -0600 Subject: [PATCH] Fix unistd dup usage --- src/dlangui/platforms/ansi_console/dconsole.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/platforms/ansi_console/dconsole.d b/src/dlangui/platforms/ansi_console/dconsole.d index 5d83fb98..7023c044 100644 --- a/src/dlangui/platforms/ansi_console/dconsole.d +++ b/src/dlangui/platforms/ansi_console/dconsole.d @@ -280,7 +280,7 @@ class Console { break; } if (readBufPos > 0 && isSequenceCompleted()) { - string s = readBuf[0 .. readBufPos].dup; + string s = readBuf[0 .. readBufPos].idup; readBufPos = 0; return s; }