[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] TosWin2 startup crash



On 09/01/2013 21:45, Vincent Rivière wrote:
The attached patch fixes this problem.

And similar fix for tw-call.app. Please commit.

tw-call.patch
Fix crash on standard Atari machines. Contributed by Vincent Riviere.

--
Vincent Rivière
diff -x CVS -aurN freemint.orig/tools/toswin2/tw-call/tw-call.c freemint/tools/toswin2/tw-call/tw-call.c
--- freemint.orig/tools/toswin2/tw-call/tw-call.c	2005-07-12 12:32:59.000000000 +0200
+++ freemint/tools/toswin2/tw-call/tw-call.c	2013-01-09 22:08:12.140625000 +0100
@@ -193,7 +193,7 @@
 	tw_id = find_tw();						/* TW2 suchen bzw. starten */
 	if (tw_id > 0)
 	{
-		if (strcmp(argv[1], "-l") == 0)	/* Neue Shell */
+		if (argc > 1 && strcmp(argv[1], "-l") == 0)	/* Neue Shell */
 			send_msg(TWSHELL);
 		else if (argc > 1)					/* TOS-Programm */
 		{