commit 3dfd5f0988506a5475e9f716a9f06d4efd72a630
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 
8b9e5edf88a94cca62d7429a0699ce6bde5e77a4..ac9fc83af3a6641d7993eb1cf52ee15dfc322c19
 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -117,7 +117,7 @@ struct odf_sb_info* odf_read_super(char 
                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