forked from lda/telodendria
Fix some compile warnings.
This commit is contained in:
parent
a2eec3946c
commit
ebc3da9b23
2 changed files with 2 additions and 2 deletions
|
@ -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] = ' ';
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue