diff --git a/README.md b/README.md index 5c455b0..13e0d3f 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ This is also GPLv3 bcs I was too lazy to look for the "do anything I don't care" # Contributors Special thanks to: * ChatGPT, in times of slow laptops where pages take ages to load, a single tab connected to a bunch of burning cloud GPUs feeding corporate hype is all you need to get quick answers for your questions, as long as you know how to filter AI crap ofc. -* My lack of gf, can't imagine this project being possible if somebody actually cared about me daily. +* [My lack of gf](https://www.instagram.com/reel/C8sa3Gltmtq/?igsh=NO_ZUCKERBERG__FUCK_OFF_YOUR_FINGERPRINGTING_QUERY__OBVIOUSLY_STANDS_FOR_INSTAGRAM_SHARE_ID_FFS), can't imagine this project being possible if somebody actually cared about me daily. # Milestones * If this ~~video~~ **repo** gets to 100 ~~likes~~ **stars**, I'll make an arch aur package and properly document installation on multiple init systems. diff --git a/src/auth.c b/src/auth.c index 1f48b18..228680e 100644 --- a/src/auth.c +++ b/src/auth.c @@ -79,7 +79,7 @@ void moarEnv(char* user, struct session session, struct passwd *pw) { setenv("XDG_SESSION_TYPE", xdg_session_type, true); char* buf; - size_t bsize = snprintf(NULL, 0, "/run/user/%d", pw->pw_uid); + size_t bsize = snprintf(NULL, 0, "/run/user/%d", pw->pw_uid) + 1; buf = malloc(bsize); snprintf(buf, bsize, "/run/user/%d", pw->pw_uid); setenv("XDG_RUNTIME_DIR", buf, true);