1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 01:56:44 +02:00

Add enum for file_type() and a little cleanup

This commit is contained in:
jfreegman
2018-10-08 22:28:36 -04:00
parent 258736995d
commit 8f0e6026f0
5 changed files with 30 additions and 18 deletions

View File

@ -107,10 +107,9 @@ int complete_line(ToxWindow *self, const void *list, size_t n_items, size_t size
return -1;
}
const char *L = (char *) list;
const char *L = (const char *) list;
const char *endchrs = " ";
char ubuf[MAX_STR_SIZE];
memset(ubuf, 0, sizeof(ubuf));
char ubuf[MAX_STR_SIZE] = {0};
/* work with multibyte string copy of buf for simplicity */
if (wcs_to_mbs_buf(ubuf, ctx->line, sizeof(ubuf)) == -1) {