summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-04-12 00:36:54 +0000
committerwtchang%redhat.com <devnull@localhost>2006-04-12 00:36:54 +0000
commit3c0f197a6b3cdbf57e6489b5032f4fcbc04a36b1 (patch)
treef94f5fb0d9de98d992201644108af77d639e2602
parent248edb0e521916e690b09791abeda9b67be35321 (diff)
downloadnspr-hg-3c0f197a6b3cdbf57e6489b5032f4fcbc04a36b1.tar.gz
Bugzilla Bug 326168: fixed an allocation size bug. The patch isNSPRPUB_WINCE_04122006_BASE
contributed by neil@parkwaycc.co.uk. r=wtc. Tag: MOZILLA_1_8_BRANCH
-rw-r--r--pr/src/linking/prlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c
index 884983e6..51bff2b8 100644
--- a/pr/src/linking/prlink.c
+++ b/pr/src/linking/prlink.c
@@ -827,7 +827,7 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
} else {
int wlen = MultiByteToWideChar(CP_ACP, 0, name, -1, NULL, 0);
if (wlen > MAX_PATH)
- wname = wname_malloc = PR_Malloc(wlen);
+ wname = wname_malloc = PR_Malloc(wlen * sizeof(PRUnichar));
if (wname == NULL ||
!MultiByteToWideChar(CP_ACP, 0, name, -1, wname, wlen)) {
oserr = _MD_ERRNO();