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++;
|
||||||
}
|
}
|
||||||
BufPos = 0;
|
*BufPos = 0;
|
||||||
return TempBuf;
|
return TempBuf;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -79,7 +79,7 @@ char * BytesToHexStr( const char * Bytes, const int Len, const char * Separator,
|
|||||||
BufPos += (First)? 2 : 2+SepLen;
|
BufPos += (First)? 2 : 2+SepLen;
|
||||||
First = false;
|
First = false;
|
||||||
}
|
}
|
||||||
BufPos = 0;
|
*BufPos = 0;
|
||||||
return TempBuf;
|
return TempBuf;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -111,7 +111,7 @@ char * BytesToBinStr( const char * Bytes, const int Len, const char * Separator,
|
|||||||
BufPos += (First)? 8 : 8+SepLen;
|
BufPos += (First)? 8 : 8+SepLen;
|
||||||
First = false;
|
First = false;
|
||||||
}
|
}
|
||||||
BufPos = 0;
|
*BufPos = 0;
|
||||||
return TempBuf;
|
return TempBuf;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -147,7 +147,7 @@ char * HexStrToBytes( const char * Str, const int Len, const char * Separator, c
|
|||||||
StrPos += SepLen;
|
StrPos += SepLen;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BufPos = 0;
|
*BufPos = 0;
|
||||||
return TempBuf;
|
return TempBuf;
|
||||||
}
|
}
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user