CID 22575 (#2-1 of 2): Copy into fixed size buffer (STRING_OVERFLOW)

This commit is contained in:
Enno Rehling 2015-10-29 20:45:36 +01:00
parent d3f7bd7b10
commit 4e431b41e2
1 changed files with 1 additions and 1 deletions

View File

@ -1525,7 +1525,7 @@ report_template(const char *filename, report_context * ctx, const char *charset)
}
}
newline(out);
strcpy(buf, LOC(f->locale, parameters[P_NEXT]));
strlcpy(buf, LOC(f->locale, parameters[P_NEXT]), sizeof(buf));
rps_nowrap(out, buf);
newline(out);
fstream_done(&strm);