Patch from Eric Norum <eric@…> to correct calls to memset(). The arguments for value and size were reversed everywhere.