forked from github/server
CID 22575 (#2-1 of 2): Copy into fixed size buffer (STRING_OVERFLOW)
This commit is contained in:
parent
d3f7bd7b10
commit
4e431b41e2
|
@ -1525,7 +1525,7 @@ report_template(const char *filename, report_context * ctx, const char *charset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newline(out);
|
newline(out);
|
||||||
strcpy(buf, LOC(f->locale, parameters[P_NEXT]));
|
strlcpy(buf, LOC(f->locale, parameters[P_NEXT]), sizeof(buf));
|
||||||
rps_nowrap(out, buf);
|
rps_nowrap(out, buf);
|
||||||
newline(out);
|
newline(out);
|
||||||
fstream_done(&strm);
|
fstream_done(&strm);
|
||||||
|
|
Loading…
Reference in New Issue