summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-06 10:24:22 -0400
committerJune McEnroe <june@causal.agency>2021-06-06 10:24:22 -0400
commit7ea14eec84241da5ca5dce0df6d86fda45762858 (patch)
tree1575e2a1242d0f31dc60de65a83c5c2bdd1d142c
parentOpenBSD: unveil XDG directories only when needed (diff)
downloadcatgirl-7ea14eec84241da5ca5dce0df6d86fda45762858.tar.gz
catgirl-7ea14eec84241da5ca5dce0df6d86fda45762858.zip
Pad kiosk username with zero, not space
Oops!
-rw-r--r--chat.c2
1 files changed, 1 insertions, 1 deletions
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;
 	}
class='logsubject'>Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe