(hx509_name_to_string): don't overwrite with 1 byte with bmpString.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16432 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-02 22:11:06 +00:00
parent 36a3388bb5
commit a0be6bbc6e

View File

@@ -188,7 +188,7 @@ hx509_name_to_string(const hx509_name name, char **str)
ss = malloc(len + 1);
if (ss == NULL)
abort();
for (k = 0; k < len + 1; k++)
for (k = 0; k < len; k++)
ss[k] = bmp[k] & 0xff;
ss[k] = '\0';
break;