use sizeof() instead of strlen
authorYiannis Pericleous <yiannos@loki.fsl.cs.sunysb.edu>
Fri, 25 May 2007 03:57:08 +0000 (23:57 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:33 +0000 (19:02 -0400)
fs/unionfs/odf.c

index 8b9e5edf88a94cca62d7429a0699ce6bde5e77a4..ac9fc83af3a6641d7993eb1cf52ee15dfc322c19 100644 (file)
@@ -117,7 +117,7 @@ struct odf_sb_info* odf_read_super(char *options)
                goto out_release;
        }
 
-       osi->sb = lookup_one_len(ODF_SB, nd.dentry, strlen(ODF_SB));
+       osi->sb = lookup_one_len(ODF_SB, nd.dentry, sizeof(ODF_SB) - 1);
        if (IS_ERR(osi->sb)) {
                err = PTR_ERR(osi->sb);
                osi->sb = NULL;