X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_nodemap.c;h=836b442100a9a13b27c510f61550193c7a01690c;hb=08e888a20ec87b3e9dfccbae34cc2cfe98f848e6;hp=3a9bd090dc699c39579bc0e91c311eb35273a3e5;hpb=ae295503f53e867e11dc51b217f336e8b20d119f;p=fs%2Flustre-release.git diff --git a/lustre/utils/liblustreapi_nodemap.c b/lustre/utils/liblustreapi_nodemap.c index 3a9bd090..836b442 100644 --- a/lustre/utils/liblustreapi_nodemap.c +++ b/lustre/utils/liblustreapi_nodemap.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include "lustreapi_internal.h" @@ -32,7 +32,7 @@ int llapi_nodemap_exists(const char *nodemap) { char mapname[PATH_MAX + 1]; - snprintf(mapname, sizeof(mapname) - 1, "nodemap/%s", nodemap); + snprintf(mapname, sizeof(mapname), "nodemap/%s", nodemap); return get_param(mapname, NULL, 0); }