C: fixup wrong amagic_generation