1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

core: use PATH_MAX for size of variable with complete filename in exec_on_files

This commit is contained in:
Sébastien Helleu
2017-07-04 22:13:38 +02:00
parent ff448b9096
commit f70c2e521e
+1 -1
View File
@@ -490,7 +490,7 @@ util_exec_on_files (const char *directory, int recurse_subdirs,
void (*callback)(void *data, const char *filename),
void *callback_data)
{
char complete_filename[1024];
char complete_filename[PATH_MAX];
DIR *dir;
struct dirent *entry;
struct stat statbuf;