lib/package_msg.c: fix a heap overflow (noticed by @Gottox).