Two statements were indented on the same line under a for statement.
The second one would not be included in the loop, only being executed
after the loop finishes.
This is obviously an error, as it modifies the LETTERS entry being
used.
{
/* fill in the random bits */
for (j = 0, v = value; j < 6; ++j)
- tmpl[(len - 6) + j] = LETTERS[v % 62]; v /= 62;
+ {
+ tmpl[(len - 6) + j] = LETTERS[v % 62];
+ v /= 62;
+ }
/* try to create the directory */
if (mkdir (tmpl, 0700) == 0)