Skip to content

Commit

Permalink
remove non-standard strnlen.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623870201
  • Loading branch information
tensorflower-gardener committed Apr 11, 2024
1 parent 74f86d7 commit 8932d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/xla/xla/service/custom_call_status.cc
Expand Up @@ -31,5 +31,5 @@ void XlaCustomCallStatusSetSuccess(XlaCustomCallStatus* status) {

void XlaCustomCallStatusSetFailure(XlaCustomCallStatus* status,
const char* message, size_t message_len) {
status->message = std::string(message, strnlen(message, message_len));
status->message = std::string(message, 0, message_len);
}

0 comments on commit 8932d17

Please sign in to comment.