irungentoo/toxcore — pull request #910 by tux3 (2014-06-19 02:41:47+00:00)
Title: Remove some immediatly overwritten writes in toxcore/Messenger.c

Fix a 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)