1
0
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:
Sebastien Helleu
2014-02-26 09:17:20 +01:00
parent 1aae49a2eb
commit c8cd6c4639
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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))