* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
authorTom Tromey <tromey@redhat.com>
Tue, 29 Sep 2009 15:13:45 +0000 (15:13 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Sep 2009 15:13:45 +0000 (15:13 +0000)
gdb/ChangeLog
gdb/python/py-value.c

index a1c6674908efc409f44a9ba5c1c5aad6045a3fc4..133f423e05db1170db5d1adf39d0305759427d1b 100644 (file)
@@ -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
index e2ae0baddc7395bf610f4b5162c6399c0ac47ab4..fc1b71a0b6aa83cbb24f16c1c83998696135bf76 100644 (file)
@@ -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))