mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8077308: Fix warning: increase O_BUFLEN in ostream.hpp -- output truncated
Reviewed-by: dholmes, hseigel
This commit is contained in:
parent
1314bfbc94
commit
a22fc004de
1 changed files with 6 additions and 1 deletions
|
@ -978,8 +978,13 @@ void defaultStream::start_log() {
|
|||
xs->head("properties");
|
||||
// Print it as a java-style property list.
|
||||
// System properties don't generally contain newlines, so don't bother with unparsing.
|
||||
outputStream *text = xs->text();
|
||||
for (SystemProperty* p = Arguments::system_properties(); p != NULL; p = p->next()) {
|
||||
xs->text()->print_cr("%s=%s", p->key(), p->value());
|
||||
// Print in two stages to avoid problems with long
|
||||
// keys/values.
|
||||
text->print_raw(p->key());
|
||||
text->put('=');
|
||||
text->print_raw_cr(p->value());
|
||||
}
|
||||
xs->tail("properties");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue