From 7ea14eec84241da5ca5dce0df6d86fda45762858 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Sun, 6 Jun 2021 10:24:22 -0400 Subject: Pad kiosk username with zero, not space Oops! --- chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index e5527ac..b3990f3 100644 --- a/chat.c +++ b/chat.c @@ -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; } -- cgit 1.4.1-2-gfad0