Make *_unserialize safe to use on buffers in-place
authorPeter Harris <pharris@opentext.com>
Thu, 23 Sep 2010 01:16:51 +0000 (21:16 -0400)
committerPeter Harris <pharris@opentext.com>
Thu, 23 Sep 2010 02:20:04 +0000 (22:20 -0400)
commit8c1d2021ca611c1452a8d2ff2a705569e4ebd056
treebedc854356471d9b286f410f28042dda1af1f802
parent28a71c6567d08272dc9c1c2b32f0529f11f62b9e
Make *_unserialize safe to use on buffers in-place

By calling memmove instead of memcpy, and walking the buffer backward
from the end, *_unserialize is safe to use in-place.

Signed-off-by: Peter Harris <pharris@opentext.com>
src/c_client.py