]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debugfs: Fix ncheck display so that extra characters aren't printed
authorTheodore Ts'o <tytso@mit.edu>
Tue, 21 Oct 2008 03:51:53 +0000 (23:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 21 Oct 2008 03:51:53 +0000 (23:51 -0400)
Fix a single-character typo in the printf format statement.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/ncheck.c

index abb38a87963ecbce24767fec59105e6a5b3c1497..166be6bbbda264394f0f28b5cb63232e3958d644 100644 (file)
@@ -42,7 +42,7 @@ static int ncheck_proc(struct ext2_dir_entry *dirent,
                return 0;
        for (i=0; i < iw->num_inodes; i++) {
                if (iw->iarray[i] == dirent->inode) {
-                       printf("%u\t%s/%*s\n", iw->iarray[i], iw->parent,
+                       printf("%u\t%s/%.*s\n", iw->iarray[i], iw->parent,
                               (dirent->name_len & 0xFF), dirent->name);
                }
        }