summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2012-11-17 01:29:34 +0000
committerwtc%google.com <devnull@localhost>2012-11-17 01:29:34 +0000
commit1caee61782c52f75172334be4f06a7452321e5dc (patch)
tree50aadf3f4e27c7d34546c93da51cb2abbc22fca5
parent884ce8c91e8b3a7ca91d988406148f206d433004 (diff)
downloadnss-hg-1caee61782c52f75172334be4f06a7452321e5dc.tar.gz
Bug 812407: nssutil_escapeQuotes adds 2 to the allocation size redundantly.
r=rrelyea.
-rw-r--r--security/nss/lib/util/utilpars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/util/utilpars.c b/security/nss/lib/util/utilpars.c
index 6b633a4d3..5f94ca751 100644
--- a/security/nss/lib/util/utilpars.c
+++ b/security/nss/lib/util/utilpars.c
@@ -339,7 +339,7 @@ nssutil_escapeQuotes(const char *string, char quote, PRBool addquotes)
size = nssutil_escapeQuotesSize(string, quote, addquotes);
- dest = newString = PORT_ZAlloc(size+2);
+ dest = newString = PORT_ZAlloc(size);
if (newString == NULL) {
return NULL;
}