memcpy(line + cursor - len, value, value_length);
} else {
memcpy(line + cursor - len, value, value_length);
- strcpy(line + cursor - len + value_length, line + cursor);
+ memmove(line + cursor - len + value_length, line + cursor, strlen(line + cursor) + 1);
}
pp->expr_string = work = line;
pp->expr_string_cursor += delta;
}
bline->line = work + (pp->expr_string - work);
+ bline->line_number = -1;
pp->expr_string = NULL;
if (prev_bline) {
return;
}
- strcpy(cstart, cend + 2);
+ memmove(cstart, cend + 2, strlen(cend + 2) + 1);
pp->in_comment = FALSE;
cstart = strstr(cstart, "/*");
next = 2;
memcpy(line + cursor - len, value, value_length);
} else {
memcpy(line + cursor - len, value, value_length);
- strcpy(line + cursor - len + value_length, line + cursor);
+ memmove(line + cursor - len + value_length, line + cursor, strlen(line + cursor) + 1);
}
pp->expr_string = line;
pp->expr_string_cursor = cursor + delta;