tests/xbps/libxbps/config: fix clang warning: strncat() needs an additional byte for NUL.

This commit is contained in:
Juan RP 2014-05-16 09:51:58 +02:00
parent 6b83ec7039
commit db0b69b397

View File

@ -47,7 +47,7 @@ ATF_TC_BODY(config_include_test, tc)
strncpy(xh.rootdir, tcsdir, sizeof(xh.rootdir));
strncpy(xh.metadir, tcsdir, sizeof(xh.metadir));
strncpy(conffile, tcsdir, sizeof(conffile));
strncat(conffile, "/xbps.conf", sizeof(conffile));
strncat(conffile, "/xbps.conf", sizeof(conffile)-1);
xh.conffile = conffile;
xh.flags = XBPS_FLAG_DEBUG;
ATF_REQUIRE_EQ(xbps_init(&xh), 0);