irungentoo/toxcore — pull request #913 by tux3 (2014-06-20 10:42:24+00:00)
Title: Remove some immediatly overwritten writes in toxcore/Messenger.c

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)