diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2011-08-21 14:03:00 -0700 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2011-08-21 14:03:00 -0700 |
commit | 05c38faa83cfea33efceaf0b96492b9904be566c (patch) | |
tree | aee463119588f64a477bbc2f54504d24cb5db000 /src/mount | |
parent | ef80b0acf8ddc020fec0f2b5e8855c00afcfbdd9 (diff) | |
download | ceph-05c38faa83cfea33efceaf0b96492b9904be566c.tar.gz |
addr_parsing: avoid strcpy
Make coverity shut up.
Coverity cid 44
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/mount')
-rwxr-xr-x | src/mount/mount.ceph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 9dafd0d6f33..010337f860f 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -40,6 +40,7 @@ static char *mount_resolve_src(const char *orig_str) char *mount_path; char *src; char *buf = strdup(orig_str); + mount_path = strrchr(buf, ':'); if (!mount_path) { printf("source mount path was not specified\n"); |