Fixed overflow

This commit is contained in:
Stefan
2025-09-17 15:03:55 +02:00
committed by GitHub
parent 357f64e4e3
commit 5e89953bf9

View File

@@ -102,7 +102,10 @@ const char* GT_AsString (const StrBuf* Type, StrBuf* String)
** will be zero terminated and a pointer to the contents are returned.
*/
{
static const char HexTab[16] = "0123456789ABCDEF";
static const char HexTab[16] = {
'0','1','2','3','4','5','6','7',
'8','9','A','B','C','D','E','F'
};
unsigned I;
/* Convert Type into readable hex. String will have twice then length