Fix for pvs V782, pointer access to first element of array

This commit is contained in:
Peter Kalauskas
2017-11-19 23:19:41 -08:00
parent fdcde7dba3
commit c24b74c229
2 changed files with 2 additions and 2 deletions

View File

@@ -1696,7 +1696,7 @@ static void printdigraph(digr_T *dp)
} }
} }
p = buf; p = &buf[0];
*p++ = dp->char1; *p++ = dp->char1;
*p++ = dp->char2; *p++ = dp->char2;
*p++ = ' '; *p++ = ' ';

View File

@@ -1644,7 +1644,7 @@ static void flush_buf(UI *ui, bool toggle_cursor)
{ {
uv_write_t req; uv_write_t req;
uv_buf_t bufs[3]; uv_buf_t bufs[3];
uv_buf_t *bufp = bufs; uv_buf_t *bufp = &bufs[0];
TUIData *data = ui->data; TUIData *data = ui->data;
if (data->bufpos <= 0 && data->busy == data->is_invisible) { if (data->bufpos <= 0 && data->busy == data->is_invisible) {