diff options
author | Tino Rachui <tra@openoffice.org> | 2001-10-19 08:26:28 +0000 |
---|---|---|
committer | Tino Rachui <tra@openoffice.org> | 2001-10-19 08:26:28 +0000 |
commit | 56ddb3b91703cb4cf92935e6a50cce47f92ca4d1 (patch) | |
tree | 2905697e097194116f4939ddddc7fc2213179aa7 /sal | |
parent | da8dc28505ba354c59328cbac6c4b19474a5e6f6 (diff) |
#93464#replaced wrongly used calloc with rtl_allocateZeroMemory
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/pipe.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sal/osl/w32/pipe.c b/sal/osl/w32/pipe.c index d5c4fbf6f8fb..5f0806194eee 100644 --- a/sal/osl/w32/pipe.c +++ b/sal/osl/w32/pipe.c @@ -2,9 +2,9 @@ * * $RCSfile: pipe.c,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: hro $ $Date: 2001-09-20 15:17:50 $ + * last change: $Author: tra $ $Date: 2001-10-19 09:26:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -432,7 +432,8 @@ static sal_Int32 processMessage(oslPipe pPipe, HWND Sender, COPYDATASTRUCT *pDat case MSG_DATA: if (pData->cbData > 0) { - oslPipePacket *pPacket = calloc(1, sizeof(oslPipePacket) + pData->cbData); + // #93464# replaced calloc(1, sizeof(oslPipePacket) + pData->cbData) with rtl_allocateZeroMemory + oslPipePacket *pPacket = rtl_allocateZeroMemory( sizeof(oslPipePacket) + pData->cbData ); if (pPacket) { |