mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8167423: Adding return value check and updating index variable
Reviewed-by: dholmes, coleenp
This commit is contained in:
parent
f404ded34f
commit
0a19790e65
1 changed files with 2 additions and 0 deletions
|
@ -719,6 +719,8 @@ void JDK_Version::to_string(char* buffer, size_t buflen) const {
|
|||
index += rc;
|
||||
if (_security > 0) {
|
||||
rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _security);
|
||||
if (rc == -1) return;
|
||||
index += rc;
|
||||
}
|
||||
if (_patch > 0) {
|
||||
rc = jio_snprintf(&buffer[index], buflen - index, ".%d", _patch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue