Maelstrom: Fixed extracting Mac resources on Windows

From 1c7f785b2ceafa6c2389f4e8fe94d2913a406340 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 2 May 2026 08:01:45 -0700
Subject: [PATCH] Fixed extracting Mac resources on Windows

The ':' character isn't legal in filenames on Windows
---
 macres/macres.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/macres/macres.cpp b/macres/macres.cpp
index 6591b8a4..940f3cc2 100644
--- a/macres/macres.cpp
+++ b/macres/macres.cpp
@@ -465,8 +465,8 @@ int main(int argc, char *argv[])
 				if ( export_res ) {
 					Export(res, types[i], ids[j], argv[arg]);
 				} else {
-					char path[23];
-					SDL_snprintf(path, sizeof(path), "%s/%s:%hu", argv[arg], types[i], ids[j]);
+					char path[PATH_MAX];
+					SDL_snprintf(path, sizeof(path), "%s/%s%hu", argv[arg], types[i], ids[j]);
 					FILE *output;
 					Mac_ResData *D;
 					if ( (output=fopen(path, "w")) != NULL ) {