Fixed sizeof mistake in serialize.c example

I noticed a mistake in examples/serialize.c, with Coverity scan tool. This is a very small bug, but decided to fix it to make it correct :)