From: Tom Tromey Date: Tue, 29 Sep 2009 15:17:27 +0000 (+0000) Subject: * python/py-value.c (valpy_string): NULL-terminate 'keywords'. X-Git-Tag: gdb_7_0-2009-10-06-release~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1419f87932dccf60ab5ef6d06d05363ceaf4bbfa;p=thirdparty%2Fbinutils-gdb.git * python/py-value.c (valpy_string): NULL-terminate 'keywords'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 04b0eb1f190..e2d3808513d 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 58bcee3217f..014659327fe 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -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))