X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fliblustreapi_nodemap.c;h=acd66e35c30481f8d3f1450502c6ca78225d2680;hb=294b0efc31ae733c821fb76670238c51ca30d7f7;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..acd66e3 100644 --- a/lustre/utils/liblustreapi_nodemap.c +++ b/lustre/utils/liblustreapi_nodemap.c @@ -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); }