aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/fixfixes.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-05-15 18:28:36 +0000
committerGabriel Dos Reis <gdr@integrable-solutions.net>2005-05-15 18:28:36 +0000
commit685d5f1c3d50f441b05739c31da46ab51b5fe65c (patch)
treecd18ca760bb357ceaa6cda012988fe320aa1b783 /fixincludes/fixfixes.c
parent292e44e48d414fb84845ebfdd42c4f42e1669494 (diff)
* fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
* server.c (load_data): Likewise. (run_shell): Use XCNEW (char) in lieu of xcalloc (1, 1). * fixincl.c: #include <sys/wait.h> (run_compiles): Use XCNEWVEC instead of xcalloc. (fix_with_system, start_fixer): Use XNEWVEC instead of xmalloc. * fixfixes.c (FIX_PROC_HEAD, main): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@99740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/fixfixes.c')
-rw-r--r--fixincludes/fixfixes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fixincludes/fixfixes.c b/fixincludes/fixfixes.c
index 732092061a0..c883253123d 100644
--- a/fixincludes/fixfixes.c
+++ b/fixincludes/fixfixes.c
@@ -605,7 +605,7 @@ FIX_PROC_HEAD( wrap_fix )
* *both* the fix name and the file name.
*/
size_t ln = strlen( filname ) + strlen( p_fixd->fix_name ) + 14;
- char* pz = xmalloc( ln );
+ char* pz = XNEWVEC (char, ln);
pz_name = pz;
sprintf( pz, "FIXINC_WRAP_%s-%s", filname, p_fixd->fix_name );
@@ -770,7 +770,7 @@ main( int argc, char** argv )
return EXIT_FAILURE;
}
- pz_tmptmp = xmalloc (strlen (argv[4]) + 5);
+ pz_tmptmp = XNEWVEC (char, strlen (argv[4]) + 5);
strcpy( pz_tmptmp, argv[4] );
/* Don't lose because "12345678" and "12345678X" map to the same