Lines Matching defs:patch_sz
7515 size_t patch_sz = strlen(patch);
7517 if (patch_sz != orig_sz) {
7519 * shift log contents by (patch_sz - orig_sz) bytes to the right
7523 * shift log contents by (orig_sz - patch_sz) bytes to the left
7530 if (patch_sz > orig_sz) {
7531 if (orig + patch_sz >= buf + buf_sz) {
7533 patch_sz -= (orig + patch_sz) - (buf + buf_sz) + 1;
7535 } else if (patch_sz - orig_sz > buf_sz - log_sz) {
7537 rem_sz -= (patch_sz - orig_sz) - (buf_sz - log_sz);
7541 memmove(orig + patch_sz, orig + orig_sz, rem_sz);
7544 memcpy(orig, patch, patch_sz);