{
if (ga_grow(&buf, 8192) == FAIL)
break;
- start = buf.ga_data + buf.ga_len;
+ start = (char_u *)buf.ga_data + buf.ga_len;
}
}
if (homedrive != NULL
&& strlen(homedrive) + strlen(homepath) < sizeof(buf))
{
- sprintf(buf, "%s%s", homedrive, homepath);
+ snprintf(buf, sizeof(buf), "%s%s", homedrive, homepath);
if (buf[0] != NUL)
var = buf;
}
if (exp != NULL && *exp != NUL
&& strlen(exp) + strlen(p) < sizeof(buf))
{
- sprintf(buf, "%s%s", exp, p + 1);
+ snprintf(buf, sizeof(buf), "%s%s", exp, p + 1);
var = buf;
}
}
int insert_match;
int no_matches_found;
#ifdef ELAPSED_FUNC
- elapsed_T compl_start_tv; // Timestamp when match collection starts
+ // Timestamp when match collection starts
+ elapsed_T compl_start_tv = {0};
#endif
compl_direction = ins_compl_key2dir(c);