From 372d85f621228680872a0e6f8be80836fbc7727f Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 5 Jun 2023 16:58:47 -0400 Subject: deal slightly better with single-digit days --- calendar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar.c b/calendar.c index ca8d069..8011cb7 100644 --- a/calendar.c +++ b/calendar.c @@ -1,7 +1,7 @@ /* * UNG's Not GNU * - * Copyright (c) 2022, Jakob Kaivo + * Copyright (c) 2023, Jakob Kaivo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -67,13 +67,13 @@ int main(int argc, char *argv[]) const int REFLAGS = REG_ICASE | REG_NOSUB | REG_EXTENDED; for (size_t i = 0; i < nregs; i += 3) { char buf[64]; - strftime(buf, sizeof(buf), "%b.? +%e", tm); + strftime(buf, sizeof(buf), "%b.? *%e", tm); if (regcomp(re + i, buf, REFLAGS) != 0) { perror(buf); return 1; } - strftime(buf, sizeof(buf), "%B %e", tm); + strftime(buf, sizeof(buf), "%B *%e", tm); if (regcomp(re + i + 1, buf, REFLAGS) != 0) { perror(buf); return 1; -- cgit v1.2.1