blob: ae0199f140d46913b4322381d60b28157a88c916 (
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
|
--- cronolog-1.6.1/src/cronoutils.c Mon Dec 20 00:34:44 1999
+++ cronolog-1.6.1.new/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 */
|