Home
last modified time | relevance | path

Searched refs:newBuf (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/lib/libscrew/src/
Dlos_seq_buf.c39 char *newBuf = NULL; in ExpandSeqBuf() local
50 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()
/kernel/liteos_a/shell/full/src/cmds/
Ddmesg.c177 CHAR *newBuf = (CHAR *)addr + sizeof(DmesgInfo); in OsCopyToNew() local
206 ret = memcpy_s(newBuf, bufSize, temp + copyStart, copyLen); in OsCopyToNew()