diff options
author | Nathan Scott <nathans@redhat.com> | 2023-10-09 10:48:38 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-10-10 09:18:47 +1100 |
commit | 4103c23327359a0bd6385c2f891554f206fec397 (patch) | |
tree | 30eec810c157643b63713af1776d9bfb1de141c6 /linux/LinuxProcessTable.c | |
parent | 2978af01a79d1627d7fa90fda0efec9cf774d901 (diff) |
strchrnul is a GNU libc extension, add a wrapper for other platforms
Diffstat (limited to 'linux/LinuxProcessTable.c')
-rw-r--r-- | linux/LinuxProcessTable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/LinuxProcessTable.c b/linux/LinuxProcessTable.c index 962274c9..582b5228 100644 --- a/linux/LinuxProcessTable.c +++ b/linux/LinuxProcessTable.c @@ -856,13 +856,13 @@ static void LinuxProcessTable_readCGroupFile(LinuxProcess* process, openat_arg_t char* group = buffer; for (size_t i = 0; i < 2; i++) { - group = strchrnul(group, ':'); + group = String_strchrnul(group, ':'); if (!*group) break; group++; } - char* eol = strchrnul(group, '\n'); + char* eol = String_strchrnul(group, '\n'); *eol = '\0'; if (at != output) { |