Fix a few compilation warnings.
Fix a few possible buffer overflows.
Make it work when the exec prefix is different from the main prefix.
Check input character instead of pointer for null to find end of string.
Fix some more warnings detected by gcc 4.6
Merge branch 'master' into working
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Add tags to ignored files.
Merge remote-tracking branch 'upstream/master'
Merge branch 'working'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'

My changes from hercifc.h to fix the #defines for hifr_* have been moved
to the new file hifr.h