X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/4908c9d03361e2454ce407a9705c2ab9d7140b33..3fe2333a1fa62389ad049a1c1ca43fee77a3fef0:/disobedience/login.c?ds=inline diff --git a/disobedience/login.c b/disobedience/login.c index a02c1c6..0c6e7d7 100644 --- a/disobedience/login.c +++ b/disobedience/login.c @@ -120,11 +120,13 @@ static void set_service(struct config *c, const char *s) { } static void set_username(struct config *c, const char *s) { - c->username = s; + xfree(c->username); + c->username = xstrdup(s); } static void set_password(struct config *c, const char *s) { - c->password = s; + xfree(c->password); + c->password = xstrdup(s); } /** @brief Table used to generate the form */