summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2005-06-23 22:05:21 +0000
committerwtchang%redhat.com <devnull@localhost>2005-06-23 22:05:21 +0000
commitce9192a0690bec9a241bd1cff4aa099cf5a8dd44 (patch)
tree8a064e53fd786212160d25171c242ee04833c2ab
parent45adddbee256cb65bf40ed95a50dc9b6351e69cf (diff)
downloadnss-hg-ce9192a0690bec9a241bd1cff4aa099cf5a8dd44.tar.gz
Bugzilla Bug 298409: fixed the bug that an array size was incorrectly
calculated. r=alexei.volkov.
-rw-r--r--security/nss/cmd/crlutil/crlgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/cmd/crlutil/crlgen.c b/security/nss/cmd/crlutil/crlgen.c
index def866090..71d1e20ea 100644
--- a/security/nss/cmd/crlutil/crlgen.c
+++ b/security/nss/cmd/crlutil/crlgen.c
@@ -1362,7 +1362,7 @@ crlgen_setNextDataFn_extension(CRLGENGeneratorData *crlGenData, void *str,
}
if (extStr->extData == NULL) {
- extStr->extData = PORT_ZAlloc(MAX_EXT_DATA_LENGTH);
+ extStr->extData = PORT_ZNewArray(char *, MAX_EXT_DATA_LENGTH);
if (!extStr->extData) {
return SECFailure;
}