summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwchang0222%aol.com <devnull@localhost>2004-02-11 19:43:29 +0000
committerwchang0222%aol.com <devnull@localhost>2004-02-11 19:43:29 +0000
commitdc5d4812cf362aa2745df07c3d2434987f9b59a1 (patch)
treedf3e4b3ad75d70c08baee604a455b5df9fe10573
parent25ea7d1920e5221c787402b67107bab9d413e660 (diff)
downloadnss-hg-dc5d4812cf362aa2745df07c3d2434987f9b59a1.tar.gz
Bugzilla bug 229297: fixed compiler warning "conversion from 'double' to
'long', possible loss of data". r=jpierre,relyea.
-rw-r--r--security/nss/lib/crmf/crmfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/crmf/crmfdec.c b/security/nss/lib/crmf/crmfdec.c
index cce945e6d..994967eec 100644
--- a/security/nss/lib/crmf/crmfdec.c
+++ b/security/nss/lib/crmf/crmfdec.c
@@ -346,7 +346,7 @@ CRMF_CreateCertReqMessagesFromDER(const char *buf, long len)
/* Wanna make sure the arena is big enough to store all of the requests
* coming in. We'll guestimate according to the length of the buffer.
*/
- arenaSize = len * 1.5;
+ arenaSize = len + len/2;
poolp = PORT_NewArena(arenaSize);
if (poolp == NULL) {
return NULL;