aboutsummaryrefslogtreecommitdiff
path: root/src/alf.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-29 02:55:00 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-29 02:55:00 -0500
commit8b4a168475a005d7fc4a298321688fccdb2f8ba3 (patch)
tree26a934d898d3b4d530b2e74db6ab059c1d952e6c /src/alf.c
parent3340301b02ae647cdb286112c32772bda0faf503 (diff)
downloadalftools-8b4a168475a005d7fc4a298321688fccdb2f8ba3.tar.gz
Fix another atarify_filename() buglet: ../FOO.TXT was coming out FOO. instead of FOO.TXT as it should.
Diffstat (limited to 'src/alf.c')
-rw-r--r--src/alf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alf.c b/src/alf.c
index 88cb316..916958d 100644
--- a/src/alf.c
+++ b/src/alf.c
@@ -116,7 +116,7 @@ void atarify_filename(char *result) {
strcpy(result, name);
strcat(result, ".");
- p = strchr(in_filename, '.');
+ p = strchr(p, '.');
if(p) {
p++;
strncpy(ext, p, 3);