- i += j;
- }
- close(fd);
- for (i = 0; i < 16; i++) {
- /* 32 characters out of the 36 alphanumerics gives me the
- * latitude to discard i,l,o for being too numeric-looking,
- * and w because it has two too many syllables and one too
- * many presidential associations. */
- static const char chars[32] = "0123456789abcdefghjkmnpqrstuvxyz";
- int v = 0;
-
- k = i / 8 * 5;
- for (j = 0; j < 5; j++)
- v |= ((passbuf[k+j] >> (i%8)) & 1) << j;
-
- password[i] = chars[v];
- }
- password[i] = '\0';
+ close(fd);
+ for (i = 0; i < 16; i++) {
+ /*
+ * 32 characters out of the 36 alphanumerics gives
+ * me the latitude to discard i,l,o for being too
+ * numeric-looking, and w because it has two too
+ * many syllables and one too many presidential
+ * associations.
+ */
+ static const char chars[32] =
+ "0123456789abcdefghjkmnpqrstuvxyz";
+ int v = 0;
+
+ k = i / 8 * 5;
+ for (j = 0; j < 5; j++)
+ v |= ((passbuf[k+j] >> (i%8)) & 1) << j;
+
+ password[i] = chars[v];
+ }
+ password[i] = '\0';
+
+ sprintf(userpassbuf, "%s:%s", username, password);
+ userpass = userpassbuf;