Could you please try the attached patch? I can't easily test under HP-UX, so you may have to tweak it. Thanks.