diff options
author | Danny Holman <dholman@gymli.org> | 2023-09-13 11:21:51 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2023-09-13 11:21:51 -0500 |
commit | 4f2b2b5b946c211f97b4bbfa5a273c9c7327d203 (patch) | |
tree | 743efd4394af3cefc69f8ea77fd158dc2f171dbd /common/include/util.h | |
parent | e8dac62072e0a3be87ae730326efad7e4d10f50a (diff) |
common: fix a segfault in str_split
Fix a bug in which str_split would segfault when the string is
misformatted.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'common/include/util.h')
-rw-r--r-- | common/include/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/include/util.h b/common/include/util.h index 39c130b..66221b2 100644 --- a/common/include/util.h +++ b/common/include/util.h @@ -8,6 +8,6 @@ (type*)((char*)__mptr - offsetof(type, member)); }) char* str_strip(char *str); -char** str_split(char *str, const char *delim); +size_t str_split(char*** arr, char *str, const char *delim); #endif |