1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

fix tests

This commit is contained in:
Will Song 2015-01-12 22:39:12 -06:00
parent c2758616d8
commit b6536ddf88
No known key found for this signature in database
GPG Key ID: AF0CA153EA5D9C7C
2 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,7 @@ cmd_connect(gchar **args, struct cmd_help_t help)
if(stream){
// Limit to READ_BUF_SIZE bytes to prevent overflows in the case of a poorly chosen command
account->password = g_malloc(READ_BUF_SIZE);
fgets(account->password, READ_BUF_SIZE, stream);
account->password = fgets(account->password, READ_BUF_SIZE, stream);
pclose(stream);
} else {
log_error("popen failed when running eval_password.");

View File

@ -61,6 +61,7 @@ void cmd_rooms_uses_account_default_when_no_arg(void **state)
account->name = NULL;
account->jid = NULL;
account->password = NULL;
account->eval_password = NULL;
account->resource = NULL;
account->server = NULL;
account->last_presence = NULL;