diff options
author | Armin Rigo <arigo@tunes.org> | 2018-08-30 11:53:00 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2018-08-30 11:53:00 +0200 |
commit | 752470df2e6eb1280cb371f77542bebef8635121 (patch) | |
tree | d89a4017d4b51bec793f6520af05a39bd9af2e51 /c/_cffi_backend.c | |
parent | 952b5093dc0919b98db9e13bc4a7b0e819550d61 (diff) | |
download | cffi-752470df2e6eb1280cb371f77542bebef8635121.tar.gz |
Use memcpy here
Diffstat (limited to 'c/_cffi_backend.c')
-rw-r--r-- | c/_cffi_backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c index d7ebc97..5d3b98f 100644 --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -1475,7 +1475,7 @@ convert_array_from_object(char *data, CTypeDescrObject *ct, PyObject *init) if (cd->c_type == ct) { Py_ssize_t n = get_array_length(cd); - memmove(data, cd->c_data, n * ctitem->ct_size); + memcpy(data, cd->c_data, n * ctitem->ct_size); return 0; } } |