From bd9cfa05d376c6e5f5e0afc1245e1b76248d689a Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 16 Nov 2025 16:30:28 +0100 Subject: Allow user to only provide part of the date --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 148712f..b81b1de 100644 --- a/src/main.c +++ b/src/main.c @@ -242,7 +242,7 @@ static void ftag_add_one_file(sqlite3 *db, tm.tm_year -= 1900; tm.tm_mon -= 1; date = mktime(&tm); - if (rc != 3) { + if (rc <= 0) { perror("sccanf"); exit(EXIT_FAILURE); } -- cgit v1.2.3