memzero() segfaulted for unknown reasons... probably pebkac...