Skip to content

Commit

Permalink
Update method_trigger.c
Browse files Browse the repository at this point in the history
  • Loading branch information
h3110n3rv3 committed Dec 10, 2024
1 parent 956106f commit 3dd98d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/rastrace/method_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ setMaxStringLength(J9JavaVM *vm, const char *str, BOOLEAN atRuntime)
goto err;
}

if ((1 <= value) && (value <= RAS_MAX_STRING_LENGTH_LIMIT)) {
if ((0 <= value) && (value <= RAS_MAX_STRING_LENGTH_LIMIT)) {
RAS_GLOBAL_FROM_JAVAVM(maxStringLength, vm) = (unsigned int)value;
return OMR_ERROR_NONE;
}
err:
vaReportJ9VMCommandLineError(PORTLIB, "maxstringlength takes an integer value from 1 to %d", RAS_MAX_STRING_LENGTH_LIMIT);
vaReportJ9VMCommandLineError(PORTLIB, "maxstringlength takes an integer value from 0 to %d", RAS_MAX_STRING_LENGTH_LIMIT);
return OMR_ERROR_INTERNAL;
}

Expand Down

0 comments on commit 3dd98d3

Please sign in to comment.