From 2e46dd73d229751fd1dfb0d2aeb288e96059e943 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 11 Nov 1997 20:12:02 +0000 Subject: [PATCH] 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 --- lib/roken/parse_units.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/parse_units.c b/lib/roken/parse_units.c index 738e65458..d00bd9a60 100644 --- a/lib/roken/parse_units.c +++ b/lib/roken/parse_units.c @@ -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')