summaryrefslogtreecommitdiff
path: root/security/nss/lib
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2004-03-23 03:29:56 +0000
committernelsonb%netscape.com <devnull@localhost>2004-03-23 03:29:56 +0000
commit6b4203f2a70f81482d9a36321a291e449cb614f6 (patch)
tree06aefa8f55151ce279c495b150a8d101221ce2fe /security/nss/lib
parent415de335138b0b3a96dd01e3e49380b39802541f (diff)
downloadnss-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.c3
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