fixed remediation instructions output

This commit is contained in:
Andreas Steffen 2012-11-13 07:15:46 +01:00
parent e6a2de344d
commit f94d32dba9
1 changed files with 3 additions and 1 deletions

View File

@ -289,7 +289,7 @@ METHOD(imv_state_t, get_remediation_instructions, bool,
enumerator = this->bad_packages->create_enumerator(this->bad_packages);
while (enumerator->enumerate(enumerator, &package))
{
len += strlen(package);
len += strlen(package) + 1;
}
enumerator->destroy(enumerator);
@ -302,8 +302,10 @@ METHOD(imv_state_t, get_remediation_instructions, bool,
{
strcpy(pos, package);
pos += strlen(package);
*pos++ = '\n';
}
enumerator->destroy(enumerator);
*pos = '\0';
*string = this->instructions;
*uri = lib->settings->get_str(lib->settings,