Commit 0c590bcc authored by vysheng's avatar vysheng

Merge pull request #38 from antma/master

fix sending a lot of spaces in version string
parents e209e35f ba586594
......@@ -315,8 +315,8 @@ void do_insert_header (void) {
struct utsname st;
uname (&st);
out_string (st.machine);
static char buf[65536];
tsnprintf (buf, 65535, "%999s %999s %999s", st.sysname, st.release, st.version);
static char buf[4096];
tsnprintf (buf, sizeof (buf), "%.999s %.999s %.999s\n", st.sysname, st.release, st.version);
out_string (buf);
out_string (TG_VERSION " (build " TG_BUILD ")");
out_string ("En");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment