From 7c5d91d9fc708ae992d3a6d2287c803603801594 Mon Sep 17 00:00:00 2001 From: relan Date: Sat, 8 Dec 2012 11:53:58 +0000 Subject: [PATCH] Do not print directory name on size check failure. Name is not yet available at that moment. --- libexfat/node.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libexfat/node.c b/libexfat/node.c index 825bf24..8f27713 100644 --- a/libexfat/node.c +++ b/libexfat/node.c @@ -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) { - 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; -- 2.11.0