--- gnatbl.c~1 2003-05-02 10:34:18.000000000 +0000 +++ gnatbl.c 2003-05-09 20:41:12.000000000 +0000 @@ -220,7 +220,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 @@ -342,7 +342,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; @@ -385,7 +385,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); }