gpgscm: Fix buffer overflow.