From cdf067216e433413d0c65cce196a7c02ab9238c6 Mon Sep 17 00:00:00 2001 From: ktietz Date: Thu, 29 Nov 2012 18:40:27 +0000 Subject: PR target/53912 * prefix.c (lookup_key): Replace xmalloc/xrealloc use by XNEWVEC/XRESIZEVEC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193946 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/prefix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/prefix.c') diff --git a/gcc/prefix.c b/gcc/prefix.c index 369ede70309..c7003f8c674 100644 --- a/gcc/prefix.c +++ b/gcc/prefix.c @@ -157,12 +157,12 @@ lookup_key (char *key) } size = 32; - dst = xmalloc (size); + dst = XNEWVEC (char, size); res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); if (res == ERROR_MORE_DATA && type == REG_SZ) { - dst = xrealloc (dst, size); + dst = XRESIZEVEC (char, dst, size); res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); } -- cgit v1.2.1