aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-09-29 15:13:45 +0000
committerTom Tromey <tromey@redhat.com>2009-09-29 15:13:45 +0000
commit31158f0e2ad76b47e845c786c625599682cecd6e (patch)
tree954c365d1990f2c867ee2ccf94464a40551a3883 /gdb
parent464d3bd458270c2006a3aa6988259ad99c83c84f (diff)
downloadgdb-31158f0e2ad76b47e845c786c625599682cecd6e.zip
gdb-31158f0e2ad76b47e845c786c625599682cecd6e.tar.gz
gdb-31158f0e2ad76b47e845c786c625599682cecd6e.tar.bz2
* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/python/py-value.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a1c6674..133f423 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-29 Tom Tromey <tromey@redhat.com>
+
+ * python/py-value.c (valpy_string): NULL-terminate 'keywords'.
+
2009-09-29 Ulrich Weigand <uweigand@de.ibm.com>
* s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index e2ae0ba..fc1b71a 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -239,7 +239,7 @@ valpy_string (PyObject *self, PyObject *args, PyObject *kw)
const char *user_encoding = NULL;
const char *la_encoding = NULL;
struct type *char_type;
- static char *keywords[] = { "encoding", "errors", "length" };
+ static char *keywords[] = { "encoding", "errors", "length", NULL };
if (!PyArg_ParseTupleAndKeywords (args, kw, "|ssi", keywords,
&user_encoding, &errors, &length))