looking slightly more complex, so this might not work, worth a try though:
in pqiv.c find the bit that looks like
Code: Select all
case 'h':
default:
helpMessage(0);
change to
Code: Select all
case 'h':
/* default: */
helpMessage(0);
(basically comment out the default argument).This should stop the help message triggering, and force the program to run.
You can do all this from within the pqiv directory, just make (or make debug /make vdebug for more messages) and run from there.
Something weird is happening, compiling the same code on x86 works fine, even with the miscounted arguments. The code isn't that low-level, so I don't think it's doing anything that *should* be architecture specific, but like you I am right at the edge of my C knowledge. Fun-times!
I wish I had a regular debian arm file-system to try this on, to rule out the hf aspect. If anyone has an SD card with a regular debian on it's probably worth installing pqiv on that and trying it.