Searched refs:newBuf (Results 1 – 2 of 2) sorted by relevance
39 char *newBuf = NULL; in ExpandSeqBuf() local50 newBuf = (char*)malloc(seqBuf->size <<= 1); in ExpandSeqBuf()51 if (newBuf == NULL) { in ExpandSeqBuf()54 (void)memset_s(newBuf + oldCount, seqBuf->size - oldCount, 0, seqBuf->size - oldCount); in ExpandSeqBuf()56 ret = memcpy_s(newBuf, seqBuf->size, seqBuf->buf, oldCount); in ExpandSeqBuf()58 free(newBuf); in ExpandSeqBuf()64 seqBuf->buf = newBuf; in ExpandSeqBuf()
177 CHAR *newBuf = (CHAR *)addr + sizeof(DmesgInfo); in OsCopyToNew() local206 ret = memcpy_s(newBuf, bufSize, temp + copyStart, copyLen); in OsCopyToNew()