Lines Matching defs:patch_sz
7072 size_t patch_sz = strlen(patch);
7074 if (patch_sz != orig_sz) {
7076 * shift log contents by (patch_sz - orig_sz) bytes to the right
7080 * shift log contents by (orig_sz - patch_sz) bytes to the left
7087 if (patch_sz > orig_sz) {
7088 if (orig + patch_sz >= buf + buf_sz) {
7090 patch_sz -= (orig + patch_sz) - (buf + buf_sz) + 1;
7092 } else if (patch_sz - orig_sz > buf_sz - log_sz) {
7094 rem_sz -= (patch_sz - orig_sz) - (buf_sz - log_sz);
7098 memmove(orig + patch_sz, orig + orig_sz, rem_sz);
7101 memcpy(orig, patch, patch_sz);