summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelson%bolyard.com <devnull@localhost>2007-01-03 12:52:01 +0000
committernelson%bolyard.com <devnull@localhost>2007-01-03 12:52:01 +0000
commitb9a1a9c0cebc7ea9914e0138112cb42a91a13cf7 (patch)
treee4226225d95fb5951abbf6a352c3c475cf96dd96
parent9aab834e79eab0870068386d40a061d52560e040 (diff)
downloadnss-hg-b9a1a9c0cebc7ea9914e0138112cb42a91a13cf7.tar.gz
Bug 354423. Get the right string length. R=alexei.volkov,rrelyea
-rw-r--r--security/nss/cmd/modutil/pk11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/cmd/modutil/pk11.c b/security/nss/cmd/modutil/pk11.c
index d78a210bb..196af2575 100644
--- a/security/nss/cmd/modutil/pk11.c
+++ b/security/nss/cmd/modutil/pk11.c
@@ -742,7 +742,7 @@ loser:
PORT_Free(newpw);
}
if(newpw2) {
- memset(newpw2, 0, strlen(newpw));
+ memset(newpw2, 0, strlen(newpw2));
PORT_Free(newpw2);
}
return ret;