commit 2025-09-02 16:13 edit a bit ZCppMain/ZtCStringEx.H

This commit is contained in:
2025-09-02 16:13:14 +09:00
parent 2c02d1a70a
commit 7134f0eb67

View File

@ -5140,12 +5140,11 @@ namespace ZNsMain
TypeLength VL_PrevSize =
(AB_DoAppend ? ml_UseLen : 0);
ReAlloc //>>>>>>>>>>>>>>>>>>>>>>>>
ReAlloc //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
(
VL_PrevSize+VL_LastPos+AL_AddAllocSize,
AB_DoAppend
VL_PrevSize+VL_LastPos+AL_AddAllocSize, AB_DoAppend
);
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// 윈도우에서 read() 함수는 \r\n 을 한 문자로 읽어들이므로 주의
@ -5155,7 +5154,7 @@ namespace ZNsMain
{
mpc_Data[ml_UseLen=VL_PrevSize]=0; ::close(AH_FileDesc); return false;
}/*
//////////////////////////////////////////////////////////////////////*/
///////////////////////////////////////////////////////////////////////*/
if(VL_ReadSize>0)
mpc_Data[ml_UseLen=VL_PrevSize+VL_ReadSize]=0;