Change the list of separating characters (between units) to comma,

space, and tab, removing digits. Having digits in this list makes a
flag like `T42 generate a parse error. This change makes `17m3s' an
invalid time-spec (you need a space).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3932 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-11-11 20:12:02 +00:00
parent e52acc0502
commit 2e46dd73d2

View File

@@ -107,7 +107,7 @@ parse_something (const char *s, const struct units *units,
++p; ++p;
val = -1; val = -1;
} }
u_len = strcspn (p, "0123456789 \t"); u_len = strcspn (p, ", \t");
partial = 0; partial = 0;
partial_unit = NULL; partial_unit = NULL;
if (u_len > 1 && p[u_len - 1] == 's') if (u_len > 1 && p[u_len - 1] == 's')