nvram: Fix write beyond end condition; prove to gcc copy is safe