diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-29 18:40:27 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-29 18:40:27 +0000 |
commit | cdf067216e433413d0c65cce196a7c02ab9238c6 (patch) | |
tree | c4469308f1804ad458be46495eaf77f736c14dc0 /gcc/prefix.c | |
parent | 149eabc5939978456047a0b83c65c530c580b71d (diff) | |
download | gcc-cdf067216e433413d0c65cce196a7c02ab9238c6.tar.gz |
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
Diffstat (limited to 'gcc/prefix.c')
-rw-r--r-- | gcc/prefix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |