PE: fix buffer overflow regression caused by the fix for #64 (fcbe3ca).