commit ceb70bf4943e3525c72e6bb51f38fa48ffd16dad
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Thu May 24 23:57:08 2007 -0400

    use sizeof() instead of strlen

diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index 8b9e5ed..ac9fc83 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -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;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to