forked from Telodendria/Telodendria
Fix potential write out of bounds.
This commit is contained in:
parent
42526c95bb
commit
54924b9444
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ HeaderParse(Stream * stream, HeaderExpr * expr)
|
|||
/* Cope with preprocessor macro expansions at the top
|
||||
* level. */
|
||||
expr->type = HP_UNKNOWN;
|
||||
strncpy(expr->data.text, word, HEADER_EXPR_MAX);
|
||||
strncpy(expr->data.text, word, HEADER_EXPR_MAX - 1);
|
||||
}
|
||||
|
||||
Free(word);
|
||||
|
|
Loading…
Reference in a new issue