Trailing blanks and buffer overflows

Coverity scan check caught several places where possible buffer overflows
may happen. Also cleaned-up and removed a bunch of trailing spaces.
splinefont.c: In function 'SplinePointListContainsPoint'

splinefont.c:2087:15: warning: unused variable 'end'
splinefont.c:2086:15: warning: unused variable 'p'
gmenu.c: In function 'HKTextInfoToUntranslatedText' - fixed warnings

gmenu.c:1187:5, gmenu.c:1189:5: warning: suggest parentheses around
assignment used as truth value.
gmenu.c:1192:5: warning: function returns address of local variable
Merge pull request #725 from JoesCat/master

Stop possible overflows