add length modifier to the format for strings in sprintf call
This commit is contained in:
parent
933a65c335
commit
e1c750ad7f
1 changed files with 2 additions and 2 deletions
|
@ -321,8 +321,8 @@ void do_insert_header (void) {
|
|||
struct utsname st;
|
||||
uname (&st);
|
||||
out_string (st.machine);
|
||||
static char buf[1000000];
|
||||
sprintf (buf, "%s %s %s", st.sysname, st.release, st.version);
|
||||
static char buf[65536];
|
||||
sprintf (buf, "%999s %999s %999s", st.sysname, st.release, st.version);
|
||||
out_string (buf);
|
||||
out_string (TG_VERSION " (build " TG_BUILD ")");
|
||||
out_string ("En");
|
||||
|
|
Loading…
Add table
Reference in a new issue