OSDN Git Service

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

index 04b0eb1..e2d3808 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 58bcee3..0146593 100644 (file)
@@ -238,7 +238,7 @@ valpy_string (PyObject *self, PyObject *args, PyObject *kw)
   const char *errors = NULL;
   const char *user_encoding = NULL;
   const char *la_encoding = NULL;
-  static char *keywords[] = { "encoding", "errors", "length" };
+  static char *keywords[] = { "encoding", "errors", "length", NULL };
 
   if (!PyArg_ParseTupleAndKeywords (args, kw, "|ssi", keywords,
                                    &user_encoding, &errors, &length))