diff options
Diffstat (limited to 'gcc/c-incpath.c')
| -rw-r--r-- | gcc/c-incpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-incpath.c b/gcc/c-incpath.c index 40406124e5b..38611068a79 100644 --- a/gcc/c-incpath.c +++ b/gcc/c-incpath.c @@ -109,7 +109,7 @@ add_env_var_paths (const char *env_var, int chain) path = xstrdup ("."); else { - path = xmalloc (q - p + 1); + path = XNEWVEC (char, q - p + 1); memcpy (path, p, q - p); path[q - p] = '\0'; } @@ -340,7 +340,7 @@ add_path (char *path, int chain, int cxx_aware, bool user_supplied_p) if (*c == '\\') *c = '/'; #endif - p = xmalloc (sizeof (cpp_dir)); + p = XNEW (cpp_dir); p->next = NULL; p->name = path; if (chain == SYSTEM || chain == AFTER) |

