summaryrefslogtreecommitdiff
path: root/trans/magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/magic.c')
-rw-r--r--trans/magic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/magic.c b/trans/magic.c
index e207ca6f..40ce29c1 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -260,7 +260,7 @@ trivfs_S_dir_readdir (struct trivfs_protid *cred,
i = 0;
for (p = dirbuf; p < dirbuf + dirbufsize;
p += ((struct dirent *) p)->d_reclen)
- if (++i == entry)
+ if (i++ == entry)
break;
*data = p;
*datalen = dirbuf + dirbufsize - p;