summaryrefslogtreecommitdiff
path: root/udev_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_lib.c')
-rw-r--r--udev_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_lib.c b/udev_lib.c
index 012d60b0ea..6807f817a1 100644
--- a/udev_lib.c
+++ b/udev_lib.c
@@ -219,7 +219,7 @@ int call_foreach_file(file_fnct_t fnct, const char *dirname,
list_for_each_entry_safe(loop_file, tmp_file, &file_list, list) {
char filename[NAME_SIZE];
- snprintf(filename, NAME_SIZE-1, "%s/%s", dirname, loop_file->name);
+ snprintf(filename, NAME_SIZE, "%s/%s", dirname, loop_file->name);
filename[NAME_SIZE-1] = '\0';
fnct(filename, data);