From b298994ce755d4ddc0c7de882c989e58806c212d Mon Sep 17 00:00:00 2001 From: Peter Vilim Date: Wed, 7 Jan 2015 21:16:18 -0600 Subject: fix for fgets --- src/config/accounts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/accounts.c b/src/config/accounts.c index 2c8d5cb5..784651ad 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -232,7 +232,7 @@ accounts_get_account(const char * const name) FILE *stream = popen(eval_password, "r"); // Limit to 100 bytes to prevent overflows in the case of a poorly chosen command password = g_malloc(100); - fgets(password, 100, stream); + password = fgets(password, 100, stream); } gboolean enabled = g_key_file_get_boolean(accounts, name, "enabled", NULL); -- cgit 1.4.1-2-gfad0