1
0
Fork 0

Update stringformat.cpp

This commit is contained in:
Torusrxxx 2025-03-19 16:22:49 +00:00 committed by GitHub
parent 04703952d6
commit 5b2f5c4031
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static size_t getSSERegisterOffset(FormatValueType value, size_t elementSize)
{
char buf[16]; // a safe buffer with sufficient length to prevent buffer overflow while parsing
memset(buf, 0, sizeof(buf));
if(strlen(value) > sizeof(buf))
if(strlen(value) >= sizeof(buf))
{
return 0;
}