Fix String(Hex()) usage

- additional add test casye to log.run

Fixes #2265
This commit is contained in:
Alexander Boettcher
2017-01-30 21:35:01 +01:00
committed by Norman Feske
parent 818795ab90
commit dd5592cc50
3 changed files with 5 additions and 1 deletions

View File

@ -592,7 +592,7 @@ class Genode::String
void out_string(char const *str, size_t n) override
{
while (n-- > 0 && _capacity_left())
while (n-- > 0 && _capacity_left() && *str)
_append(*str++);
}
};