fixed remediation instructions output
This commit is contained in:
@@ -289,7 +289,7 @@ METHOD(imv_state_t, get_remediation_instructions, bool,
|
|||||||
enumerator = this->bad_packages->create_enumerator(this->bad_packages);
|
enumerator = this->bad_packages->create_enumerator(this->bad_packages);
|
||||||
while (enumerator->enumerate(enumerator, &package))
|
while (enumerator->enumerate(enumerator, &package))
|
||||||
{
|
{
|
||||||
len += strlen(package);
|
len += strlen(package) + 1;
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
@@ -302,8 +302,10 @@ METHOD(imv_state_t, get_remediation_instructions, bool,
|
|||||||
{
|
{
|
||||||
strcpy(pos, package);
|
strcpy(pos, package);
|
||||||
pos += strlen(package);
|
pos += strlen(package);
|
||||||
|
*pos++ = '\n';
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
*pos = '\0';
|
||||||
|
|
||||||
*string = this->instructions;
|
*string = this->instructions;
|
||||||
*uri = lib->settings->get_str(lib->settings,
|
*uri = lib->settings->get_str(lib->settings,
|
||||||
|
|||||||
Reference in New Issue
Block a user