From: Tom Tromey Date: Tue, 29 Sep 2009 15:13:45 +0000 (+0000) Subject: * python/py-value.c (valpy_string): NULL-terminate 'keywords'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31158f0e2ad76b47e845c786c625599682cecd6e;p=binutils-gdb.git * python/py-value.c (valpy_string): NULL-terminate 'keywords'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a1c6674908e..133f423e05d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-09-29 Tom Tromey + + * python/py-value.c (valpy_string): NULL-terminate 'keywords'. + 2009-09-29 Ulrich Weigand * 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 e2ae0baddc7..fc1b71a0b6a 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))