From 6d476be900ba3e3234398012a740c8f5d4161624 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Thu, 17 Aug 2023 16:33:44 +0000 Subject: Don't depend on String8 cast to C string Bug: 295394788 Test: m checkbuild Change-Id: I89e8dbd1b2e937c6ed8dc19f77cd014c99bd79f0 --- bcmdhd/wifi_hal/rtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcmdhd/wifi_hal/rtt.cpp b/bcmdhd/wifi_hal/rtt.cpp index 603caf3..ae9309e 100644 --- a/bcmdhd/wifi_hal/rtt.cpp +++ b/bcmdhd/wifi_hal/rtt.cpp @@ -131,7 +131,7 @@ get_err_info(int status) for (i = 0; i < (int) num_entries; i++) { if (p_entry->id == status) - return p_entry->text; + return p_entry->text.c_str(); p_entry++; /* next entry */ } return "unknown error"; /* not found */ -- cgit v1.2.3