summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--onlineupdate/source/libmar/sign/nss_secutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/onlineupdate/source/libmar/sign/nss_secutil.c b/onlineupdate/source/libmar/sign/nss_secutil.c
index 9fe5fe4d49e2..875c14309ec0 100644
--- a/onlineupdate/source/libmar/sign/nss_secutil.c
+++ b/onlineupdate/source/libmar/sign/nss_secutil.c
@@ -122,7 +122,7 @@ SECU_FilePasswd(PK11SlotInfo *slot, PRBool retry, void *arg)
return 0; /* no good retrying - the files contents will be the same */
}
- phrases = PORT_ZAlloc(maxPwdFileSize);
+ phrases = PORT_ZAlloc(maxPwdFileSize + 1);
if (!phrases) {
return 0; /* out of memory */