Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377719
b: refs/heads/master
c: ad917e7
h: refs/heads/master
i:
  377717: 3a15f5d
  377715: 6d02a15
  377711: e97b1c9
v: v3
  • Loading branch information
Zhao Hongjiang authored and David Teigland committed Jun 25, 2013
1 parent 5e87172 commit b7b6710
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06452eb0538827d2158945d20e3d33e359884437
refs/heads/master: ad917e7f821855a2f223131bb6c90ca6c9240bf3
5 changes: 3 additions & 2 deletions trunk/fs/dlm/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ static ssize_t cluster_cluster_name_read(struct dlm_cluster *cl, char *buf)
static ssize_t cluster_cluster_name_write(struct dlm_cluster *cl,
const char *buf, size_t len)
{
strncpy(dlm_config.ci_cluster_name, buf, DLM_LOCKSPACE_LEN);
strncpy(cl->cl_cluster_name, buf, DLM_LOCKSPACE_LEN);
strlcpy(dlm_config.ci_cluster_name, buf,
sizeof(dlm_config.ci_cluster_name));
strlcpy(cl->cl_cluster_name, buf, sizeof(cl->cl_cluster_name));
return len;
}

Expand Down

0 comments on commit b7b6710

Please sign in to comment.