summaryrefslogtreecommitdiff
path: root/gdb/common/gdb_vecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/gdb_vecs.c')
-rw-r--r--gdb/common/gdb_vecs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/common/gdb_vecs.c b/gdb/common/gdb_vecs.c
index 63766db0011..f8c34147222 100644
--- a/gdb/common/gdb_vecs.c
+++ b/gdb/common/gdb_vecs.c
@@ -49,7 +49,8 @@ delim_string_to_char_ptr_vec_append (VEC (char_ptr) **vecp,
do
{
size_t this_len;
- char *next_field, *this_field;
+ const char *next_field;
+ char *this_field;
next_field = strchr (str, delimiter);
if (next_field == NULL)