This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] gelf_getauxv: Use memcpy instead of pointer dereference to avoid alignment problems.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 27 Aug 2013 09:47:34 -0700
- Subject: Re: [PATCH] gelf_getauxv: Use memcpy instead of pointer dereference to avoid alignment problems.
> - memcpy(dst, (char *) data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
> + memcpy(dst, data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
> sizeof (GElf_auxv_t));
This still has a missing space and the indentation is off.