diff options
author | Jakob Kaivo <jkk@ung.org> | 2023-06-05 16:58:47 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2023-06-05 16:58:47 -0400 |
commit | 372d85f621228680872a0e6f8be80836fbc7727f (patch) | |
tree | 3fbe96b65d2c2b47f81b2d36fae5f4a7c38f46e8 | |
parent | 3cc0a29ea9cce20d2b0dcdf717ca1d8df9f26e88 (diff) |
deal slightly better with single-digit days
-rw-r--r-- | calendar.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* * UNG's Not GNU * - * Copyright (c) 2022, Jakob Kaivo <jkk@ung.org> + * Copyright (c) 2023, Jakob Kaivo <jkk@ung.org> * * 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; |