Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

const fix for memcpy_to_child

  • Loading branch information...
commit fff1db52d45a348c7da2fb91a0b41b894e32bf2a 1 parent f5d1d89
@nelhage authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  ptrace.c
  2. +1 −1  ptrace.h
2  ptrace.c
@@ -156,7 +156,7 @@ unsigned long ptrace_remote_syscall(struct ptrace_child *child,
return rv;
-int ptrace_memcpy_to_child(struct ptrace_child *child, child_addr_t dst, void *src, size_t n) {
+int ptrace_memcpy_to_child(struct ptrace_child *child, child_addr_t dst, const void *src, size_t n) {
int err;
unsigned long scratch;
2  ptrace.h
@@ -44,5 +44,5 @@ unsigned long ptrace_remote_syscall(struct ptrace_child *child,
unsigned long p2, unsigned long p3,
unsigned long p4, unsigned long p5);
-int ptrace_memcpy_to_child(struct ptrace_child *, child_addr_t, void*, size_t);
+int ptrace_memcpy_to_child(struct ptrace_child *, child_addr_t, const void*, size_t);
int ptrace_memcpy_from_child(struct ptrace_child *, void*, child_addr_t, size_t);

0 comments on commit fff1db5

Please sign in to comment.
Something went wrong with that request. Please try again.