diff options
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index e54f62bf518..2a171f3b8dc 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -93,7 +93,7 @@ glusterfs_read_secure_access_file (void)                          start = result[0].rm_so;                          end  = result[0].rm_eo;                          copy_len = end - start; -                        strcpy (keyval, line+copy_len); +                        gf_strncpy (keyval, line+copy_len, sizeof (keyval));                          if (keyval[0]) {                                  cert_depth = atoi(keyval);                                  if (cert_depth == 0)  | 
