CVS code -
+- General
+ - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again,
+ this was causing nasty errors if the call to nrealloc moved
+ where the data was located.
- po/de.po:
- Updated German translation (Karl Eichwalder).
free(top->data);
top->data = tmpstr;
- null_at(bot->data, bot_x);
+ null_at(&bot->data, bot_x);
next = bot->next;
/* We explicitly don't decrement totlines here because we don't snarf
tmp->data = nmalloc(strlen(¤t->data[current_x]) + 1);
strcpy(tmp->data, ¤t->data[current_x]);
splice_node(current, tmp, current->next);
- null_at(current->data, current_x);
+ null_at(¤t->data, current_x);
current = current->next;
current_x = 0;
placewewant = 0;
}
/* Null a string at a certain index and align it */
-void null_at(char *data, int index)
+void null_at(char **data, int index)
{
- data[index] = 0;
- align(&data);
+
+ /* Ahh! Damn dereferencing */
+ (*data)[index] = 0;
+ align(data);
}
void usage(void)
down = 1;
}
- null_at(inptr->data, current_x);
+ null_at(&inptr->data, current_x);
if (ISSET(MARK_ISSET) && (mark_beginbuf == inptr)) {
mark_beginbuf = temp;
&& (current_x == current_word_start)) {
current_x = current_word_start;
- null_at(inptr->data, current_word_start);
+ null_at(&inptr->data, current_word_start);
} else {
while (isspace((int) inptr->data[i])) {
void new_file(void);
void new_magicline(void);
void splice_node(filestruct *begin, filestruct *newnode, filestruct *end);
-void null_at(char *data, int index);
+void null_at(char **data, int index);
void page_up_center(void);
void blank_edit(void);
void search_init_globals(void);