- Fix gcc 8 buffer warning in testcode.

git-svn-id: file:///svn/unbound/trunk@4675 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2018-05-03 14:09:33 +00:00
parent d2c8bcf318
commit 581f975b38
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -177,7 +177,8 @@ spool_temp_file(FILE* in, int* lineno, char* id)
while(isspace((unsigned char)*parse))
parse++;
if(strncmp(parse, "$INCLUDE_TEMPFILE", 17) == 0) {
char l2[MAX_LINE_LEN];
char l2[MAX_LINE_LEN-30]; /* -30 makes it fit with
a preceding $INCLUDE in the buf line[] */
char* tid = parse+17;
while(isspace((unsigned char)*tid))
tid++;