Important Update:
- UtilCore: - Coverted strings not zero terminated
This commit is contained in:
@@ -49,7 +49,7 @@ char * BytesToSafeStr( const char * Bytes, const int Len, const bool NoCrLf, con
|
||||
}
|
||||
BufPos++;
|
||||
}
|
||||
BufPos = 0;
|
||||
*BufPos = 0;
|
||||
return TempBuf;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -79,7 +79,7 @@ char * BytesToHexStr( const char * Bytes, const int Len, const char * Separator,
|
||||
BufPos += (First)? 2 : 2+SepLen;
|
||||
First = false;
|
||||
}
|
||||
BufPos = 0;
|
||||
*BufPos = 0;
|
||||
return TempBuf;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -111,7 +111,7 @@ char * BytesToBinStr( const char * Bytes, const int Len, const char * Separator,
|
||||
BufPos += (First)? 8 : 8+SepLen;
|
||||
First = false;
|
||||
}
|
||||
BufPos = 0;
|
||||
*BufPos = 0;
|
||||
return TempBuf;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
@@ -147,7 +147,7 @@ char * HexStrToBytes( const char * Str, const int Len, const char * Separator, c
|
||||
StrPos += SepLen;
|
||||
}
|
||||
}
|
||||
BufPos = 0;
|
||||
*BufPos = 0;
|
||||
return TempBuf;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user