browser..) (52) [FIXED]
- Alt speller argument (-s, --speller) does not take a string argument of
more than one word. (53) [FIXED].
+- Cut to end cutting (-k) causes segfaults (try cutting "- Backup making
+ (filename~)?" line in TODO file) (discovred by
+ higuita@cadernoverde.com) (54) [FIXED].
+
** Open BUGS **
$Id$
-- Cut to end cutting (-k) causes segfaults (try cutting "- Backup making
- (filename~)?" line in TODO file) (discovred by
- higuita@cadernoverde.com) (54).
-
if (ISSET(MARK_ISSET)) {
if (current->lineno == mark_beginbuf->lineno) {
tmp = copy_node(current);
- newsize = abs(strlen(¤t->data[mark_beginx]) -
- strlen(¤t->data[current_x]));
+ newsize = abs(mark_beginx - current_x) + 1;
- tmpstr = nmalloc(newsize);
+ tmpstr = nmalloc(newsize + 1);
if (current_x < mark_beginx) {
strncpy(tmpstr, ¤t->data[current_x], newsize);
memmove(¤t->data[current_x],
¤t->data[mark_beginx],
- strlen(¤t->data[mark_beginx] - newsize));
+ strlen(¤t->data[mark_beginx]) + 1);
} else {
strncpy(tmpstr, ¤t->data[mark_beginx], newsize);
memmove(¤t->data[mark_beginx],
¤t->data[current_x],
- strlen(¤t->data[current_x] - newsize));
+ strlen(¤t->data[current_x]) + 1);
current_x = mark_beginx;
update_cursor();
}
- tmpstr[newsize] = 0;
+ tmpstr[newsize - 1] = 0;
tmp->data = tmpstr;
add_to_cutbuffer(tmp);
dump_buffer(cutbuffer);