To be able to reuse the add/del word utility functions for lines containing
tabs allow both space and tab as word separators.
Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
const char *end;
char *buf;
end = os_strchr(txt, ' ');
+ if (end == NULL)
+ end = os_strchr(txt, '\t');
if (end == NULL)
end = txt + os_strlen(txt);
buf = dup_binstr(txt, end - txt);
char *buf;
int ret;
end = os_strchr(txt, ' ');
+ if (end == NULL)
+ end = os_strchr(txt, '\t');
if (end == NULL)
end = txt + os_strlen(txt);
buf = dup_binstr(txt, end - txt);