Fixes silent buffer overflow (which becomes obvious when using -fstack-protector-all and -D_FORTIFY_SOURCE=2) with minor patch from Fedora. Signoff both, Allan