diff options
Diffstat (limited to 'record')
-rw-r--r-- | record/record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/record/record.c b/record/record.c index 82d5f9f1e..5bd46c29e 100644 --- a/record/record.c +++ b/record/record.c @@ -1495,7 +1495,7 @@ RecordAllocIntervals(SetInfoPtr psi, int nIntervals) malloc(nIntervals * sizeof(RecordSetInterval)); if (!psi->intervals) return BadAlloc; - bzero(psi->intervals, nIntervals * sizeof(RecordSetInterval)); + memset(psi->intervals, 0, nIntervals * sizeof(RecordSetInterval)); psi->size = nIntervals; return Success; } /* end RecordAllocIntervals */ @@ -1669,7 +1669,7 @@ RecordRegisterClients(RecordContextPtr pContext, ClientPtr client, xRecordRegist err = BadAlloc; goto bailout; } - bzero(si, sizeof(SetInfoRec) * maxSets); + memset(si, 0, sizeof(SetInfoRec) * maxSets); /* theoretically you must do this because NULL may not be all-bits-zero */ for (i = 0; i < maxSets; i++) @@ -2053,7 +2053,7 @@ RecordAllocRanges(GetContextRangeInfoPtr pri, int nRanges) pri->pRanges = pNewRange; pri->size = newsize; - bzero(&pri->pRanges[pri->size - SZINCR], SZINCR * sizeof(xRecordRange)); + memset(&pri->pRanges[pri->size - SZINCR], 0, SZINCR * sizeof(xRecordRange)); if (pri->nRanges < nRanges) pri->nRanges = nRanges; return Success; |