mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
core: fix size used in some snprintf
This commit is contained in:
+1
-1
@@ -460,7 +460,7 @@ util_exec_on_files (const char *directory, int hidden_files, void *data,
|
||||
{
|
||||
if (hidden_files || (entry->d_name[0] != '.'))
|
||||
{
|
||||
snprintf (complete_filename, sizeof (complete_filename) - 1,
|
||||
snprintf (complete_filename, sizeof (complete_filename),
|
||||
"%s/%s", directory, entry->d_name);
|
||||
lstat (complete_filename, &statbuf);
|
||||
if (!S_ISDIR(statbuf.st_mode))
|
||||
|
||||
Reference in New Issue
Block a user