* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
This commit is contained in:
parent
464d3bd458
commit
31158f0e2a
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
2009-09-29 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
|
* s390-tdep.c (s390_displaced_step_fixup): Use type ULONGEST
|
||||||
|
|
|
@ -239,7 +239,7 @@ valpy_string (PyObject *self, PyObject *args, PyObject *kw)
|
||||||
const char *user_encoding = NULL;
|
const char *user_encoding = NULL;
|
||||||
const char *la_encoding = NULL;
|
const char *la_encoding = NULL;
|
||||||
struct type *char_type;
|
struct type *char_type;
|
||||||
static char *keywords[] = { "encoding", "errors", "length" };
|
static char *keywords[] = { "encoding", "errors", "length", NULL };
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords (args, kw, "|ssi", keywords,
|
if (!PyArg_ParseTupleAndKeywords (args, kw, "|ssi", keywords,
|
||||||
&user_encoding, &errors, &length))
|
&user_encoding, &errors, &length))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue