OSDN Git Service

Do not print directory name on size check failure because name is not yet available.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sat, 8 Dec 2012 11:53:58 +0000 (11:53 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sat, 8 Dec 2012 11:53:58 +0000 (11:53 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@303 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/node.c

index 825bf24..8f27713 100644 (file)
@@ -270,11 +270,8 @@ static int readdir(struct exfat* ef, const struct exfat_node* parent,
                        if (((*node)->flags & EXFAT_ATTRIB_DIR) &&
                                (*node)->size % CLUSTER_SIZE(*ef->sb) != 0)
                        {
                        if (((*node)->flags & EXFAT_ATTRIB_DIR) &&
                                (*node)->size % CLUSTER_SIZE(*ef->sb) != 0)
                        {
-                               char buffer[EXFAT_NAME_MAX + 1];
-
-                               exfat_get_name(*node, buffer, EXFAT_NAME_MAX);
-                               exfat_error("directory `%s' has invalid size %"PRIu64" bytes",
-                                               buffer, (*node)->size);
+                               exfat_error("directory has invalid size %"PRIu64" bytes",
+                                               (*node)->size);
                                goto error;
                        }
                        --continuations;
                                goto error;
                        }
                        --continuations;