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

Fix potential string truncations with snprintf

This commit is contained in:
jfreegman
2017-09-01 17:36:17 -04:00
parent 52dd60dc86
commit f2c116feb3
3 changed files with 4 additions and 4 deletions

View File

@ -287,7 +287,7 @@ int dir_match(ToxWindow *self, Tox *m, const wchar_t *line, const wchar_t *cmd)
if (dp == NULL)
return -1;
char dirnames[MAX_DIRS][NAME_MAX];
char dirnames[MAX_DIRS][NAME_MAX + 1];
struct dirent *entry;
int dircount = 0;