From: Anand Jain <anand.jain@xxxxxxxxxx> Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx> --- btrfs-list.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index e0cb782..6e83b31 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -205,7 +205,7 @@ static int add_root(struct root_lookup *root_lookup, if (name) strncpy(ri->name, name, name_len); if (name_len > 0) - ri->name[name_len-1] = 0; + ri->name[name_len] = '\0'; if (gen) ri->gen = *gen; ri->otime = ot; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
