Lines Matching refs:new_str
280 char* new_str; in avb_replace() local
282 new_str = avb_malloc(num_new); in avb_replace()
283 if (new_str == NULL) { in avb_replace()
286 avb_memcpy(new_str, ret, ret_len); in avb_replace()
287 avb_memcpy(new_str + ret_len, str, num_before); in avb_replace()
288 avb_memcpy(new_str + ret_len + num_before, replace, replace_len); in avb_replace()
289 new_str[num_new - 1] = '\0'; in avb_replace()
291 ret = new_str; in avb_replace()
307 char* new_str = avb_malloc(num_new); in avb_replace() local
308 if (new_str == NULL) { in avb_replace()
311 avb_memcpy(new_str, ret, ret_len); in avb_replace()
312 avb_memcpy(new_str + ret_len, str_after_last_replace, num_remaining); in avb_replace()
313 new_str[num_new - 1] = '\0'; in avb_replace()
315 ret = new_str; in avb_replace()