diff -uNr tux-3.2.14/tuxstat.c tux-3.2.14-tuxstatfix/tuxstat.c --- tux-3.2.14/tuxstat.c 2001-12-02 14:53:26 +0300 +++ tux-3.2.14-tuxstatfix/tuxstat.c 2004-05-16 21:54:20 +0400 @@ -65,6 +65,7 @@ if (len != BLOCK) return -1; tmp = buf; + file_len=0; sscanf(tmp, "%i %08x %i %s %s %s %i %i %d:%d.%d.%d.%d:%d %i %i%n", &proto, &req, &atom_idx, atom0, atom1, state_bits, &error, &status, &d1, &d2,&d3,&d4,&d5, &d6, &file_len, &file_pos,&parsed_chars); tmp += parsed_chars; if (proto == 1) { @@ -73,9 +74,11 @@ } sscanf(tmp, "%08x/%08x %08x/%08x %n", &sock_ptr, &sk_ptr, &data_sock_ptr, &data_sk_ptr, &parsed_chars); tmp += parsed_chars; + header_len=0; sscanf(tmp, "%i\n%i%n", &parsed_len, &header_len, &parsed_chars); tmp += parsed_chars; tmp += header_len; + objectname_len=0; sscanf(tmp, "%i\n%n", &objectname_len, &parsed_chars); tmp += parsed_chars; if (objectname_len) {