mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
fix for fgets
This commit is contained in:
parent
887cc1f419
commit
b298994ce7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user