]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/common/gdb_vecs.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / common / gdb_vecs.c
index 84424f87b7bec65118f6d098db8b207c30875c3f..63766db00115ab75bce5fb5179f4f0cfa7902c25 100644 (file)
@@ -60,7 +60,7 @@ delim_string_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
          next_field++;
        }
 
-      this_field = xmalloc (this_len + 1);
+      this_field = (char *) xmalloc (this_len + 1);
       memcpy (this_field, str, this_len);
       this_field[this_len] = '\0';
       VEC_safe_push (char_ptr, *vecp, this_field);