replaces cuttingpartialline).
do_uncut_text()
- Similar display fixes (David Lawrence Ramsey).
+ cut_marked_segment()
+ - Fix off-by one in mem allocation.
- faq.html
- Removed nano-editor.org FTP site address [deprecated] and added
the GNU one.
/* Now, paste bot[bot_x] into top[top_x] */
if (destructive) {
- tmpstr = charalloc(strlen(top->data) + strlen(&bot->data[bot_x]));
+ tmpstr = charalloc(top_x + strlen(&bot->data[bot_x]) + 1);
strncpy(tmpstr, top->data, top_x);
strcpy(&tmpstr[top_x], &bot->data[bot_x]);
free(top->data);