From: Jan Safranek <jsafrane@redhat.com> The buffer should be bigger to hold the 10 character, which are set later in the function.