mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 14:56:21 +00:00
fix for fgets
This commit is contained in:
@@ -232,7 +232,7 @@ accounts_get_account(const char * const name)
|
|||||||
FILE *stream = popen(eval_password, "r");
|
FILE *stream = popen(eval_password, "r");
|
||||||
// Limit to 100 bytes to prevent overflows in the case of a poorly chosen command
|
// Limit to 100 bytes to prevent overflows in the case of a poorly chosen command
|
||||||
password = g_malloc(100);
|
password = g_malloc(100);
|
||||||
fgets(password, 100, stream);
|
password = fgets(password, 100, stream);
|
||||||
}
|
}
|
||||||
gboolean enabled = g_key_file_get_boolean(accounts, name, "enabled", NULL);
|
gboolean enabled = g_key_file_get_boolean(accounts, name, "enabled", NULL);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user