mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 21:00:16 -05:00
Add trim and trim_empty support to strsplit and update all callers
This commit is contained in:
parent
929ba5cebe
commit
8e66b42ceb
5 changed files with 163 additions and 23 deletions
|
|
@ -837,7 +837,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
split_mac = strsplit(split_map, SPLIT_MAX + 1, buffer, ",");
|
||||
split_mac = strsplit(split_map, SPLIT_MAX + 1, buffer, ",", " \t\r\n", 0);
|
||||
|
||||
if (split_mac > SPLIT_MAX) {
|
||||
/* LCOV_EXCL_START */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue