Fix output length check in PackName