chunk: Print chunks without separator if + modifier is used

This commit is contained in:
Tobias Brunner
2013-08-24 16:22:51 +02:00
committed by Andreas Steffen
parent 32a145fdbd
commit f0c54e8c15
3 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -797,7 +797,7 @@ int chunk_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec,
chunk_t copy = *chunk;
int written = 0;
if (!spec->hash)
if (!spec->hash && !spec->plus)
{
u_int chunk_len = chunk->len;
const void *new_args[] = {&chunk->ptr, &chunk_len};
@@ -810,7 +810,7 @@ int chunk_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec,
{
first = FALSE;
}
else
else if (!spec->plus)
{
written += print_in_hook(data, ":");
}