diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-02 21:25:40 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-02 21:25:40 -0500 |
| commit | 94ee852ad5e8e2e6b77fd3c607095b563a282aca (patch) | |
| tree | 365e3d6f796a7e1751be0ab5900249897e063b4a /src | |
| parent | d2085ad7f2db7310f99726c5c3b1c9019f3947cc (diff) | |
| download | alftools-94ee852ad5e8e2e6b77fd3c607095b563a282aca.tar.gz | |
unalf: Fix column alignment when date is <none>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/listalf.c | 2 |
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); } |
