mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
* python/py-value.c (valpy_string): NULL-terminate 'keywords'.
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user