After days of debugging
commitcaa714396103a735f8f8e5821f02d557fc7f69b2
authormalc <av1474@comtv.ru>
Wed, 30 Jul 2014 22:16:56 +0000 (31 02:16 +0400)
committermalc <av1474@comtv.ru>
Wed, 30 Jul 2014 22:16:56 +0000 (31 02:16 +0400)
tree38bb4be8cd9ec20f1974cc2350907c0648d6f10e
parent3582c8e796a422fb30b0fc312d21badbd6df83b3
After days of debugging

It still behaves funnily...
link.c
wsi.ml