diff options
author | Peter Vilim <peterlvilim@users.noreply.github.com> | 2015-01-07 21:16:18 -0600 |
---|---|---|
committer | Peter Vilim <peterlvilim@users.noreply.github.com> | 2015-01-07 21:16:18 -0600 |
commit | b298994ce755d4ddc0c7de882c989e58806c212d (patch) | |
tree | 6ea8c8732571088bea12564ad7eb16ad9e1d98c1 /src | |
parent | 887cc1f419ea2b74ea2aa20d5d1f53f5c7e129f3 (diff) | |
download | profani-tty-b298994ce755d4ddc0c7de882c989e58806c212d.tar.gz |
fix for fgets
Diffstat (limited to 'src')
-rw-r--r-- | src/config/accounts.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |