Fix some compile warnings.

This commit is contained in:
Jordan Bancino 2023-05-06 23:06:13 +00:00
parent a2eec3946c
commit ebc3da9b23
2 changed files with 2 additions and 2 deletions

View file

@ -371,7 +371,7 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
StrEquals(word, "elif") ||
StrEquals(word, "error"))
{
int pC;
int pC = 0;
Free(word);
expr->data.text[i] = ' ';

View file

@ -535,7 +535,7 @@ JsonDecodeString(Stream * in)
/* Move the output of StrUtf8Encode() into our
* local buffer */
strncpy(a, utf8Ptr, sizeof(a));
strncpy(a, utf8Ptr, sizeof(a) - 1);
Free(utf8Ptr);
break;
default: