libelf: Rename to sensible elfutils
[termux-packages] / packages / elfutils / eblwstrtab.c.patch
1 diff -u -r ../elfutils-0.166/libebl/eblwstrtab.c ./libebl/eblwstrtab.c
2 --- ../elfutils-0.166/libebl/eblwstrtab.c 2015-08-21 08:22:37.000000000 -0400
3 +++ ./libebl/eblwstrtab.c 2016-05-04 13:11:26.834934000 -0400
4 @@ -294,6 +294,11 @@
5 return newstr;
6 }
7
8 +static wchar_t* wmempcpy(wchar_t* s1, const wchar_t* s2, size_t n)
9 +{
10 + size_t bytes = n * sizeof(wchar_t);
11 + return (wchar_t *) (memcpy((char *) s1, (char *) s2, bytes) + bytes);
12 +}
13
14 static void
15 copystrings (struct Ebl_WStrent *nodep, wchar_t **freep, size_t *offsetp)