Pad kiosk username with zero, not space

Oops!
weechat-hashes
C. McEnroe 2021-06-06 10:24:22 -04:00
parent 0fe004c5c4
commit 7ea14eec84
1 changed files with 1 additions and 1 deletions

2
chat.c
View File

@ -273,7 +273,7 @@ int main(int argc, char *argv[]) {
if (self.kiosk) {
char *hash;
int n = asprintf(&hash, "%8" PRIx32, _hash(user));
int n = asprintf(&hash, "%08" PRIx32, _hash(user));
if (n < 0) err(EX_OSERR, "asprintf");
user = hash;
}