Add terminating NUL after __func__ string literal #2920

This commit is contained in:
Willis Blackburn
2026-01-24 12:09:55 -05:00
parent 034f73a9e1
commit 789416798f
2 changed files with 21 additions and 0 deletions

View File

@@ -470,6 +470,7 @@ Literal* AddLiteral (const char* S)
{
StrBuf SB;
SB_InitFromString(&SB, S);
SB_AppendChar(&SB, '\0');
return AddLiteralStr(&SB);
}