diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:48:32 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-29 17:48:32 +0200 |
commit | 1b99ff44f9b6286dc5a2fecd8279c2e57404f670 (patch) | |
tree | 4c7eb150bfc94dca709078d6549ed71392202e78 /snooze.c | |
parent | 1b13bb82c9a732cd9d7216e74dab45e782c4f207 (diff) |
fix weekofyear parsing
-W0 is still allowed, but never matches...
Diffstat (limited to 'snooze.c')
-rw-r--r-- | snooze.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ int main(int argc, char *argv[]) while ((c = getopt(argc, argv, "+D:W:H:M:S:T:R:d:m:ns:t:vw:")) != -1) switch(c) { case 'D': parse(optarg, dayofyear, sizeof dayofyear, -1); break; - case 'W': parse(optarg, weekofyear, sizeof weekofyear, -1); break; + case 'W': parse(optarg, weekofyear, sizeof weekofyear, 0); break; case 'H': parse(optarg, hour, sizeof hour, 0); break; case 'M': parse(optarg, minute, sizeof minute, 0); break; case 'S': parse(optarg, second, sizeof second, 0); break; |