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@gcc.gnu.org>2005-05-15 18:28:36 +0000
commit03a9fcb862d7cdabcd639c4b423dc8fbb138e167 (patch)
treecd18ca760bb357ceaa6cda012988fe320aa1b783 /fixincludes/fixfixes.c
parentb4220f64e3bc2c2c3eb868bee76468b445fcdd3e (diff)
downloadgcc-03a9fcb862d7cdabcd639c4b423dc8fbb138e167.zip
gcc-03a9fcb862d7cdabcd639c4b423dc8fbb138e167.tar.gz
gcc-03a9fcb862d7cdabcd639c4b423dc8fbb138e167.tar.bz2
fixlib.c (load_file_data): Use XRESIZVEC in lieu of xrealloc.
* 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. From-SVN: r99740
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 7320920..c883253 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