]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: Fix sprintf overflow warning
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 4 Sep 2018 17:51:27 +0000 (13:51 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 12 Sep 2018 16:41:40 +0000 (12:41 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/libcephfs/test.cc

index 9c6a1b3d65080ab6f5e76f280bdc91458e92822e..e312a291b1d114878160c4c27c7384c89607c55f 100644 (file)
@@ -2155,7 +2155,7 @@ TEST(LibCephFS, OperationsOnDotDot) {
   ASSERT_EQ(0, ceph_conf_parse_env(cmount, NULL));
   ASSERT_EQ(ceph_mount(cmount, NULL), 0);
 
-  char c_dir[1024], c_dir_dot[1024], c_dir_dotdot[1024];
+  char c_dir[512], c_dir_dot[1024], c_dir_dotdot[1024];
   char c_non_existent_dir[1024], c_non_existent_dirs[1024];
   char c_temp[1024];