diff options
author | nelsonb%netscape.com <devnull@localhost> | 2004-03-23 03:29:56 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2004-03-23 03:29:56 +0000 |
commit | 6b4203f2a70f81482d9a36321a291e449cb614f6 (patch) | |
tree | 06aefa8f55151ce279c495b150a8d101221ce2fe /security/nss/lib | |
parent | 415de335138b0b3a96dd01e3e49380b39802541f (diff) | |
download | nss-hg-6b4203f2a70f81482d9a36321a291e449cb614f6.tar.gz |
Fix a regression introduced by rev 1.19, after NSS 3.9 was released.
r=julien.pierre. bugscape 56484.
Diffstat (limited to 'security/nss/lib')
-rw-r--r-- | security/nss/lib/certdb/alg1485.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/nss/lib/certdb/alg1485.c b/security/nss/lib/certdb/alg1485.c index 96cd3762e..a91fd2142 100644 --- a/security/nss/lib/certdb/alg1485.c +++ b/security/nss/lib/certdb/alg1485.c @@ -707,6 +707,7 @@ AppendAVA(stringBuf *bufp, CERTAVA *ava) avaValue->data[maxLen++] = '.'; avaValue->data[maxLen++] = '.'; avaValue->data[maxLen++] = '.'; + avaValue->data[maxLen] = 0; avaValue->len = maxLen; } @@ -728,7 +729,7 @@ AppendAVA(stringBuf *bufp, CERTAVA *ava) PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); rv = SECFailure; } else { - PORT_Strcpy(tmpBuf+len, (char *)avaValue->data); + PORT_Strncpy(tmpBuf+len, (char *)avaValue->data, avaValue->len + 1); rv = SECSuccess; } } else |