summaryrefslogtreecommitdiff
path: root/packages/glibc/2.12.1/0037-debug-readlink_chk-readklinkat_chk.patch
blob: 0b930f3877a2910ef3d64c10c81becb6a74ab6a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
 debug/readlink_chk.c   |    2 +-
 debug/readlinkat_chk.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/debug/readlink_chk.c
+++ b/debug/readlink_chk.c
@@ -25,7 +25,7 @@
 
 
 ssize_t
-__readlink_chk (const char *path, void *buf, size_t len, size_t buflen)
+__readlink_chk (const char *path, char *buf, size_t len, size_t buflen)
 {
   if (len > buflen)
     __chk_fail ();
--- a/debug/readlinkat_chk.c
+++ b/debug/readlinkat_chk.c
@@ -21,7 +21,7 @@
 
 
 ssize_t
-__readlinkat_chk (int fd, const char *path, void *buf, size_t len,
+__readlinkat_chk (int fd, const char *path, char *buf, size_t len,
 		  size_t buflen)
 {
   if (len > buflen)