/* If the line at filebot is blank, treat it as the magicline and
* hence the end of the file. Otherwise, add a magicline and treat
* it as the end of the file. */
- added_magicline = (openfile->filebot->data[0] != '\0');
- if (added_magicline)
+ if ((added_magicline = (openfile->filebot->data[0] != '\0')))
new_magicline();
retval = write_file(name, f_open, tmp, append, TRUE);
assert(openfile->current_x <= current_len);
- charmove(&openfile->current->data[openfile->current_x +
- char_buf_len],
- &openfile->current->data[openfile->current_x],
- current_len - openfile->current_x + char_buf_len);
- strncpy(&openfile->current->data[openfile->current_x], char_buf,
+ charmove(openfile->current->data + openfile->current_x +
+ char_buf_len, openfile->current->data +
+ openfile->current_x, current_len - openfile->current_x +
+ char_buf_len);
+ strncpy(openfile->current->data + openfile->current_x, char_buf,
char_buf_len);
current_len += char_buf_len;
openfile->totsize++;
assert(statusbar_x <= answer_len);
- charmove(&answer[statusbar_x + char_buf_len],
- &answer[statusbar_x], answer_len - statusbar_x +
+ charmove(answer + statusbar_x + char_buf_len,
+ answer + statusbar_x, answer_len - statusbar_x +
char_buf_len);
- strncpy(&answer[statusbar_x], char_buf, char_buf_len);
+ strncpy(answer + statusbar_x, char_buf, char_buf_len);
answer_len += char_buf_len;
statusbar_x += char_buf_len;