Fixing an assignment issue
[gregoa/bti.git] / bti.c
diff --git a/bti.c b/bti.c
index cd9d94c..85a314d 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -766,7 +766,7 @@ int main(int argc, char *argv[], char *envp[])
        }
 
        if (!session->user)
-               session->user = session->account;
+               session->user = strdup(session->account);
 
        dbg("account = %s\n", session->account);
        dbg("password = %s\n", session->password);