aboutsummaryrefslogtreecommitdiff
path: root/src/listalf.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-12-02 21:25:40 -0500
committerB. Watson <urchlay@slackware.uk>2025-12-02 21:25:40 -0500
commit94ee852ad5e8e2e6b77fd3c607095b563a282aca (patch)
tree365e3d6f796a7e1751be0ab5900249897e063b4a /src/listalf.c
parentd2085ad7f2db7310f99726c5c3b1c9019f3947cc (diff)
downloadalftools-94ee852ad5e8e2e6b77fd3c607095b563a282aca.tar.gz
unalf: Fix column alignment when date is <none>.
Diffstat (limited to 'src/listalf.c')
-rw-r--r--src/listalf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/listalf.c b/src/listalf.c
index 33b2bfe..f27fb6d 100644
--- a/src/listalf.c
+++ b/src/listalf.c
@@ -57,7 +57,7 @@ void format_msdos_date(char *buf) {
day = d & 0x1f;
if(day == 0 || month == 0 || month > 12)
- strncpy(buf, "<none>", 12);
+ snprintf(buf, 12, "%11s", "<none>");
else
snprintf(buf, 12, "%2d %3s %04d", day, monthnames[month], year);
}