| @@ -1028,28 +1028,21 @@ const char* CarlaPipeCommon::_readline() const noexcept | |||||
| #endif | #endif | ||||
| } CARLA_SAFE_EXCEPTION_BREAK("CarlaPipeCommon::readline() - read"); | } CARLA_SAFE_EXCEPTION_BREAK("CarlaPipeCommon::readline() - read"); | ||||
| //if (ret == 0 || c == '\n') | |||||
| // break; | |||||
| if (ret == 1 && c != '\n') | |||||
| { | |||||
| if (c == '\r') | |||||
| c = '\n'; | |||||
| if (ret != 1 || c == '\n') | |||||
| break; | |||||
| *ptr++ = c; | |||||
| if (c == '\r') | |||||
| c = '\n'; | |||||
| if (i+1 == 0xff) | |||||
| { | |||||
| i = 0; | |||||
| *ptr = '\0'; | |||||
| pData->tmpStr += pData->tmpBuf; | |||||
| ptr = pData->tmpBuf; | |||||
| } | |||||
| *ptr++ = c; | |||||
| continue; | |||||
| if (i+1 == 0xff) | |||||
| { | |||||
| i = 0; | |||||
| *ptr = '\0'; | |||||
| pData->tmpStr += pData->tmpBuf; | |||||
| ptr = pData->tmpBuf; | |||||
| } | } | ||||
| break; | |||||
| } | } | ||||
| if (ptr != pData->tmpBuf) | if (ptr != pData->tmpBuf) | ||||