Minor fix.
h3rald h3rald@h3rald.com
Fri, 13 Feb 2026 08:01:05 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
xyw.c
→
xyw.c
@@ -51,10 +51,10 @@ }
const char *input_file = argv[i]; char output_file[256]; - snprintf(output_file, sizeof(output_file), "%.*s.xim", (int)(strlen(input_file) - 4), input_file); const char *ext = strrchr(input_file, '.'); if (ext && strcmp(ext, ".xyw") == 0) { + snprintf(output_file, sizeof(output_file), "%.*s.xim", (int)(ext - input_file), input_file); if (xyw_assemble(input_file, output_file) != 0) { fprintf(stderr, "Assembly failed for file: %s\n", input_file);