--- gnatbl.c~ 2005-07-01 01:29:16.000000000 +0000 +++ gnatbl.c 2006-02-20 19:43:04.000000000 +0000 @@ -212,7 +212,7 @@ int spawn_index = 0; #if defined (__EMX__) || defined(MSDOS) - char *tmppathval = malloc (strlen (pathval) + 3); + char *tmppathval = xmalloc (strlen (pathval) + 3); strcpy (tmppathval, ".;"); pathval = strcat (tmppathval, pathval); #endif @@ -334,7 +334,7 @@ char *ptr = strstr (argv[i], ".exe"); arg_len = strlen (argv[i]); - coff2exe_args[1] = malloc (arg_len + 1); + coff2exe_args[1] = xmalloc (arg_len + 1); strcpy (coff2exe_args[1], argv[i]); if (ptr != NULL && strlen (ptr) == 4) coff2exe_args[1][arg_len-4] = 0; @@ -377,7 +377,7 @@ if (!g_present) { - del_command = malloc (strlen (coff2exe_args[1]) + 5); + del_command = xmalloc (strlen (coff2exe_args[1]) + 5); sprintf (del_command, "del %s", coff2exe_args[1]); retcode = system (del_command); }