From c6f9339133cc625ac0dfabb48795d9e2282bef41 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 9 May 2008 17:59:51 +0200 Subject: [PATCH] --- yaml --- r: 97017 b: refs/heads/master c: 00377d8e3842776d1da633ad9c79a16ecb548b92 h: refs/heads/master i: 97015: 7b6dd73ad8c95cc2d8ecde7b891a4e4432c2952c v: v3 --- [refs] | 2 +- trunk/fs/gfs2/ops_fstype.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 5aa4bb2e0042..b8c66bb501f8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad99f77778e83358c371dab7a50bde69270ed6b8 +refs/heads/master: 00377d8e3842776d1da633ad9c79a16ecb548b92 diff --git a/trunk/fs/gfs2/ops_fstype.c b/trunk/fs/gfs2/ops_fstype.c index ef9c6c4f80f6..b2028c82e8d1 100644 --- a/trunk/fs/gfs2/ops_fstype.c +++ b/trunk/fs/gfs2/ops_fstype.c @@ -142,8 +142,8 @@ static int init_names(struct gfs2_sbd *sdp, int silent) if (!table[0]) table = sdp->sd_vfs->s_id; - snprintf(sdp->sd_proto_name, GFS2_FSNAME_LEN, "%s", proto); - snprintf(sdp->sd_table_name, GFS2_FSNAME_LEN, "%s", table); + strlcpy(sdp->sd_proto_name, proto, GFS2_FSNAME_LEN); + strlcpy(sdp->sd_table_name, table, GFS2_FSNAME_LEN); table = sdp->sd_table_name; while ((table = strchr(table, '/')))