| commit | 835dfe50a73c6f6de581aaa143c333af79bcca4d | [log] [tgz] |
|---|---|---|
| author | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Aug 17 16:27:22 2023 +0000 |
| committer | Tomasz Wasilczyk <twasilczyk@google.com> | Tue Sep 12 22:31:10 2023 +0000 |
| tree | 0bec830cab5de4388aafc4af0e357bfc327be1a0 | |
| parent | a235f8ba91dd467b245f680887e2a75507814b4e [diff] [blame] |
Don't depend on String8 cast to C string Bug: 295394788 Test: m checkbuild Change-Id: I6aa039b6b2a4944e3537ef133f8785890d957edd
diff --git a/cmds/incidentd/src/IncidentService.cpp b/cmds/incidentd/src/IncidentService.cpp index 53c7b74..82c8707 100644 --- a/cmds/incidentd/src/IncidentService.cpp +++ b/cmds/incidentd/src/IncidentService.cpp
@@ -563,7 +563,7 @@ fprintf(out, "Not enough arguments for section\n"); return NO_ERROR; } - int id = atoi(args[1]); + int id = atoi(args[1].c_str()); int idx = 0; while (SECTION_LIST[idx] != NULL) { const Section* section = SECTION_LIST[idx];