eventload: shorter usernames (max 9 chars)

This commit is contained in:
Heikki Hannikainen 2012-10-11 23:52:27 +03:00
parent 36e3c02b0b
commit 56a171b2d6
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ void flood_round(struct floodthread_t *self)
continue;
}
sprintf(username, "%03x%06x", getpid(), fd);
sprintf(username, "%03x%05x", getpid(), fd);
wbufpos = snprintf(wbuf, WBUFLEN, "user %s pass %d\r\n", username, aprs_passcode(username));
int w = write(fd, wbuf, wbufpos);
if (w != wbufpos) {