Whamcloud - gitweb
LU-4341 test: skip failing sanity test 170
[fs/lustre-release.git] / lustre / utils / liblustreapi_nodemap.c
index 3a9bd09..a79fc85 100644 (file)
  */
 /*
  * Copyright (C) 2013, Trustees of Indiana University
+ *
+ * Copyright (c) 2014, Intel Corporation.
+ *
  * Author: Joshua Walgenbach <jjw@iu.edu>
  */
 
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include <liblustre.h>
 #include <lustre/lustreapi.h>
 #include "lustreapi_internal.h"
 
@@ -32,7 +34,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);
 }