The decompilation code is currently missing a semicolon after the line "char filename[64]". Yes, yes, the code isn't really intended to be compiled, but it irritated me enough to post a comment anyway. :-)
By the way, congrats on a good catch. This is a serious bug.
Minor typo
By the way, congrats on a good catch. This is a serious bug.