Fix unistd dup usage

This commit is contained in:
Christian Durán 2020-03-14 11:18:35 -06:00
parent 39ec1512c9
commit 0907817186
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class Console {
break; break;
} }
if (readBufPos > 0 && isSequenceCompleted()) { if (readBufPos > 0 && isSequenceCompleted()) {
string s = readBuf[0 .. readBufPos].dup; string s = readBuf[0 .. readBufPos].idup;
readBufPos = 0; readBufPos = 0;
return s; return s;
} }