]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
gunit/001: replace controller name size definition
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 6 May 2022 15:34:02 +0000 (21:04 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 16 May 2022 16:06:32 +0000 (10:06 -0600)
Replace the struct cg_mount_table::name size definition FILENAME_MAX
with CONTROL_NAMELEN_MAX.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
gunit/001-path.cpp

index dc83fe039eadbb96573627010510a27dbf26aa97..5bf853244f38dcd7994c21835268a8f78d60ffef 100644 (file)
@@ -44,7 +44,7 @@ class BuildPathV1Test : public ::testing::Test {
 
                // Populate the mount table
                for (i = 0; i < ENTRY_CNT; i++) {
-                       snprintf(cg_mount_table[i].name, FILENAME_MAX,
+                       snprintf(cg_mount_table[i].name, CONTROL_NAMELEN_MAX,
                                 "controller%d", i);
                        cg_mount_table[i].index = i;