Avoid off-by-one error when saving the password in klog