(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user