Fix bug in decode to memory example app Bug in detecting write errors: count and size in fwrite were swapped, so an error was always reported. Change-Id: If20276a412d110c2791c50ebc41761d6e1d3386e