Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/diagnosticArgument.cpp @ 12283:1b03bed31241
7196151: ParserTest SEGv on solaris
Reviewed-by: sla, coleenp, ctornqvi, dsamersoff
author | allwin |
---|---|
date | Tue, 17 Sep 2013 17:16:28 +0200 |
parents | ef57c43512d6 |
children |
comparison
equal
deleted
inserted
replaced
12280:9ed97b511b26 | 12283:1b03bed31241 |
---|---|
59 void GenDCmdArgument::to_string(MemorySizeArgument m, char* buf, size_t len) { | 59 void GenDCmdArgument::to_string(MemorySizeArgument m, char* buf, size_t len) { |
60 jio_snprintf(buf, len, INT64_FORMAT, m._size); | 60 jio_snprintf(buf, len, INT64_FORMAT, m._size); |
61 } | 61 } |
62 | 62 |
63 void GenDCmdArgument::to_string(char* c, char* buf, size_t len) { | 63 void GenDCmdArgument::to_string(char* c, char* buf, size_t len) { |
64 jio_snprintf(buf, len, "%s", c); | 64 jio_snprintf(buf, len, "%s", (c != NULL) ? c : ""); |
65 } | 65 } |
66 | 66 |
67 void GenDCmdArgument::to_string(StringArrayArgument* f, char* buf, size_t len) { | 67 void GenDCmdArgument::to_string(StringArrayArgument* f, char* buf, size_t len) { |
68 int length = f->array()->length(); | 68 int length = f->array()->length(); |
69 size_t written = 0; | 69 size_t written = 0; |