diff options
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 11cc038..2cbb0cb 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -421,7 +421,8 @@ valpy_string (PyObject *self, PyObject *args, PyObject *kw) GDB_PY_HANDLE_EXCEPTION (except); encoding = (user_encoding && *user_encoding) ? user_encoding : la_encoding; - unicode = PyUnicode_Decode (buffer, length * TYPE_LENGTH (char_type), + unicode = PyUnicode_Decode ((const char *) buffer, + length * TYPE_LENGTH (char_type), encoding, errors); xfree (buffer); |