summaryrefslogtreecommitdiff
blob: 12d561776f8ca50123586bc004f8f94b3ea8cc1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/src/cronoutils.c	Mon Dec 20 00:34:44 1999
+++ b/src/cronoutils.c	Mon Feb 11 03:19:32 2002
@@ -204,9 +204,21 @@
     {
 	if (ch == '%')
 	{
-	    ch = *spec++;
-	    if (!ch) break;
+	    do {
+		ch = *spec++;
+		if (!ch) break;
 	    
+		switch(ch) {
+		case '_':
+		case '-':
+		case '0':
+		    continue;
+		}
+		break;
+	    } while(1);
+
+	    if(!ch) break;
+
 	    switch (ch)
 	    {
 	    case 'y':		/* two digit year */