summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpcsvc-auth.c
diff options
context:
space:
mode:
authorNandaja Varma <nandaja.varma@gmail.com>2015-02-06 11:44:22 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-10 11:29:42 +0000
commit26cbd3bdf5dad190559afbdf0ac125262c4e90a6 (patch)
tree9d8fed20e8d46f33e9dddd321ca014917d473c06 /rpc/rpc-lib/src/rpcsvc-auth.c
parent320455bddfbadcfbe1b173b0de54b3b25bf228f7 (diff)
rpc-lib: Fixing the coverity issues
Coverity CIDs: 1210973 1124887 1124888 1124682 1124849 1124503 Change-Id: I012f6cf9d14753f572ab94aae6d442d1ef8df79a BUG: 789278 Signed-off-by: Nandaja Varma <nandaja.varma@gmail.com> Reviewed-on: http://review.gluster.org/9600 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/rpcsvc-auth.c')
-rw-r--r--rpc/rpc-lib/src/rpcsvc-auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc-auth.c b/rpc/rpc-lib/src/rpcsvc-auth.c
index 384e4a75db2..6b4c7937437 100644
--- a/rpc/rpc-lib/src/rpcsvc-auth.c
+++ b/rpc/rpc-lib/src/rpcsvc-auth.c
@@ -38,7 +38,7 @@ rpcsvc_auth_add_initer (struct list_head *list, char *idfier,
}
new->init = init;
- strcpy (new->name, idfier);
+ strncpy (new->name, idfier, sizeof (new->name) - 1);
INIT_LIST_HEAD (&new->authlist);
list_add_tail (&new->authlist, list);
return 0;