mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 07:01:05 +00:00
Alignment fix
llvm-svn: 198731
This commit is contained in:
parent
26abebbb2c
commit
29726a94ce
@ -35,7 +35,7 @@ static PyObject* setCrashReporterDescription(PyObject* self, PyObject* string)
|
||||
char* data = PyString_AsString(string);
|
||||
if (size > 0 && data)
|
||||
{
|
||||
++size; // Include the NULL terminateor in allocation and memcpy()
|
||||
++size; // Include the NULL terminateor in allocation and memcpy()
|
||||
__crashreporter_info__ = malloc(size);
|
||||
memcpy(__crashreporter_info__, data, size);
|
||||
return Py_True;
|
||||
|
Loading…
Reference in New Issue
Block a user