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:
@@ -107,7 +107,7 @@ parse_something (const char *s, const struct units *units,
|
||||
++p;
|
||||
val = -1;
|
||||
}
|
||||
u_len = strcspn (p, "0123456789 \t");
|
||||
u_len = strcspn (p, ", \t");
|
||||
partial = 0;
|
||||
partial_unit = NULL;
|
||||
if (u_len > 1 && p[u_len - 1] == 's')
|
||||
|
Reference in New Issue
Block a user