Searched refs:newBuf (Results 1 – 2 of 2) sorted by relevance
125 ExpandBuf* newBuf = (ExpandBuf*) malloc(sizeof(ExpandBuf)); in ebAlloc() local126 if (newBuf == NULL) in ebAlloc()128 newBuf->storage = (unsigned char*) malloc(kInitialSize); in ebAlloc()129 newBuf->curLen = 0; in ebAlloc()130 newBuf->maxLen = kInitialSize; in ebAlloc()132 return newBuf; in ebAlloc()
737 char* newBuf = (char*)realloc(buf, newUsed); in getProtoInfo() local738 if (newBuf == NULL) { in getProtoInfo()742 buf = newBuf; in getProtoInfo()