SDL-1.2: tests: fixed two oversights in the previous -Wwrite-strings patch.

From b1511330a5ebfb94d58d7d5fb2c4f0bb192d902b Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 20 Nov 2021 01:01:10 +0300
Subject: [PATCH] tests: fixed two oversights in the previous -Wwrite-strings
 patch.

---
 test/loopwave.c  | 8 +++-----
 test/testiconv.c | 5 +++--
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/test/loopwave.c b/test/loopwave.c
index 42683737..414b9eda 100644
--- a/test/loopwave.c
+++ b/test/loopwave.c
@@ -70,12 +70,10 @@ int main(int argc, char *argv[])
 		fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
 		return(1);
 	}
-	file = (argc < 2)? "sample.wav" : argv[1];
+	file = (argc < 2) ? "sample.wav" : argv[1];
 	/* Load the wave file into memory */
-	if ( SDL_LoadWAV(file,
-			&wave.spec, &wave.sound, &wave.soundlen) == NULL ) {
-		fprintf(stderr, "Couldn't load %s: %s\n",
-						argv[1], SDL_GetError());
+	if ( SDL_LoadWAV(file, &wave.spec, &wave.sound, &wave.soundlen) == NULL ) {
+		fprintf(stderr, "Couldn't load %s: %s\n", file, SDL_GetError());
 		quit(1);
 	}
 
diff --git a/test/testiconv.c b/test/testiconv.c
index bc429a77..7e71320c 100644
--- a/test/testiconv.c
+++ b/test/testiconv.c
@@ -29,7 +29,8 @@ int main(int argc, char *argv[])
 		"UCS4",
 		"UCS-4",
 	};
-	const char *fname;
+
+	const char * fname;
 	char buffer[BUFSIZ];
 	char *ucs4;
 	char *test[2];
@@ -40,7 +41,7 @@ int main(int argc, char *argv[])
 	fname = (argc < 2) ? "utf8.txt" : argv[1];
 	file = fopen(fname, "rb");
 	if ( !file ) {
-		fprintf(stderr, "Unable to open %s\n", argv[1]);
+		fprintf(stderr, "Unable to open %s\n", fname);
 		return (1);
 	}