summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorFranziskus Kiefer <franziskuskiefer@gmail.com>2015-11-11 11:15:54 +0100
committerFranziskus Kiefer <franziskuskiefer@gmail.com>2015-11-11 11:15:54 +0100
commite261f7f90aac562a36452c308bf0c34fe3078db3 (patch)
tree9477be983517584ef50353c47e9dfd5dba6dace1 /lib/util
parenta6e8db815fbd4f1e30cec3a4043d0cb7603c1e73 (diff)
downloadnss-hg-e261f7f90aac562a36452c308bf0c34fe3078db3.tar.gz
Bug 1223723 - [CID 749618][CID 748893] Sizeof not portable (SIZEOF_MISMATCH). r=ekr
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/utilmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/utilmod.c b/lib/util/utilmod.c
index 4be99ade2..00ffb60c8 100644
--- a/lib/util/utilmod.c
+++ b/lib/util/utilmod.c
@@ -210,7 +210,7 @@ nssutil_ReadSecmodDB(const char *appName,
char *paramsValue=NULL;
PRBool failed = PR_TRUE;
- moduleList = (char **) PORT_ZAlloc(useCount*sizeof(char **));
+ moduleList = (char **) PORT_ZAlloc(useCount*sizeof(char *));
if (moduleList == NULL) return NULL;
if (dbname == NULL) {
@@ -387,7 +387,7 @@ done:
status = PR_Access(olddbname, PR_ACCESS_EXISTS);
if (status == PR_SUCCESS) {
PR_smprintf_free(olddbname);
- PORT_ZFree(moduleList, useCount*sizeof(char **));
+ PORT_ZFree(moduleList, useCount*sizeof(char *));
PORT_SetError(SEC_ERROR_LEGACY_DATABASE);
return NULL;
}