Fixed bug when adjusting queue size
Remove some immediatly overwritten writes

Fix local variable being modified just before it goes out of scope

When memcpy-ing in a buffer, only memset the part of the buffer not modified by the memcpy, not the whole buffer

Also reorder the memset after the memcpy, to potentially avoid cache misses (NOT profiled)
Fix exceptional file leak in other/fun/sign.c
Fix redundant assignment in TCP_server.c
Merge branch 'mannol1-master'
Merge branch 'perf-rebase' of https://github.com/tux3/toxcore
Merge branch 'leak-rebase' of https://github.com/tux3/toxcore
Merge branch 'tcpserv' of https://github.com/tux3/toxcore