diff --git a/lustre/mds/lproc_mds.c b/lustre/mds/lproc_mds.c
index 343d3fe..1c29c06 100644
--- a/lustre/mds/lproc_mds.c
+++ b/lustre/mds/lproc_mds.c
@@ -77,7 +77,7 @@ static int lprocfs_mds_wr_evict_client(struct file *file, const char *buffer,
         struct ptlrpc_request_set *set;
         int rc;
 
-        sscanf(buffer, "%40s", tmpbuf);
+        sscanf(buffer, "%39s", tmpbuf);
 
         if (strncmp(tmpbuf, "nid:", 4) != 0)
                 return lprocfs_wr_evict_client(file, buffer, count, data);
diff --git a/lustre/mdt/mdt_lproc.c b/lustre/mdt/mdt_lproc.c
index 3417cae..3f17636 100644
--- a/lustre/mdt/mdt_lproc.c
+++ b/lustre/mdt/mdt_lproc.c
@@ -624,7 +624,7 @@ static int lprocfs_mdt_wr_evict_client(struct file *file, const char *buffer,
 {
         char tmpbuf[sizeof(struct obd_uuid)];
 
-        sscanf(buffer, "%40s", tmpbuf);
+        sscanf(buffer, "%39s", tmpbuf);
 
         if (strncmp(tmpbuf, "nid:", 4) != 0)
                 return lprocfs_wr_evict_client(file, buffer, count, data);
@@ -919,7 +919,7 @@ static int lprocfs_mdt_wr_mdc(struct file *file, const char *buffer,
         struct obd_uuid uuid;
         char tmpbuf[sizeof(struct obd_uuid)];
 
-        sscanf(buffer, "%40s", tmpbuf);
+        sscanf(buffer, "%39s", tmpbuf);
 
         obd_str2uuid(&uuid, tmpbuf);
         exp = cfs_hash_lookup(obd->obd_uuid_hash, &uuid);
diff --git a/lustre/ptlrpc/lproc_ptlrpc.c b/lustre/ptlrpc/lproc_ptlrpc.c
index 2b5cefb..e6077eb 100644
--- a/lustre/ptlrpc/lproc_ptlrpc.c
+++ b/lustre/ptlrpc/lproc_ptlrpc.c
@@ -760,7 +760,7 @@ int lprocfs_wr_evict_client(struct file *file, const char *buffer,
         class_incref(obd, __FUNCTION__, cfs_current());
         LPROCFS_EXIT();
 
-        sscanf(buffer, "%40s", tmpbuf);
+        sscanf(buffer, "%39s", tmpbuf);
         if (strncmp(tmpbuf, "nid:", 4) == 0)
                 obd_export_evict_by_nid(obd, tmpbuf + 4);
         else if (strncmp(tmpbuf, "uuid:", 5) == 0)