Skip to content

Commit b26964d

Browse files
committed
Small fix on the implementation source file.
1 parent 5e6f324 commit b26964d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/myshell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void MyShell::readFromPipe(int pipe, std::string& buffer, std::mutex& mutex) {
227227
);
228228

229229
if(bytesRead > 0) {
230-
tempBuffer[bytesRead] = '\0';
230+
tempBuffer[(size_t) bytesRead] = '\0';
231231

232232
std::lock_guard<std::mutex> lock(mutex);
233233
buffer += tempBuffer.data();

0 commit comments

Comments
 (0)