ref: d88eb3a20c49c9d1678847c79a2cc6025ad830da
parent: fe934ff800fe44970ee907c4c30e6ce6ef22854d
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 7 10:33:26 EST 2020
use %q for server and user
--- a/xmpp.c
+++ b/xmpp.c
@@ -494,7 +494,7 @@
mydomain = strdup(mydomain);
srand(time(nil));
- up = auth_getuserpasswd(auth_getkey, "proto=pass service=xmpp server=%s user=%s", server, user);
+ up = auth_getuserpasswd(auth_getkey, "proto=pass service=xmpp server=%q user=%q", server, user);
if(up == nil)
sysfatal("no password: %r");