Bugzilla Bug 298409: fixed the bug that an array size was incorrectly

calculated. r=alexei.volkov.
This commit is contained in:
wtchang%redhat.com 2005-06-23 22:05:21 +00:00
parent 6ae0729177
commit 2540bdf095

View File

@ -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;
}