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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user