char userpwbuf[255 + 255 + 3];
int ulen, plen;
ulen = strlen(username);
- if (ulen > 255) ulen = 255; if (ulen < 1) ulen = 1;
+ if (ulen > 255) ulen = 255;
+ if (ulen < 1) ulen = 1;
plen = strlen(password);
- if (plen > 255) plen = 255; if (plen < 1) plen = 1;
+ if (plen > 255) plen = 255;
+ if (plen < 1) plen = 1;
userpwbuf[0] = 1; /* version number of subnegotiation */
userpwbuf[1] = ulen;
memcpy(userpwbuf+2, username, ulen);