mailing list of musl libc
 help / color / mirror / code / Atom feed
50e70e5d5d17a321996138db1c1279a28d0ba345 blob 161 bytes (raw)

1
2
3
4
5
6
7
 
#include <unistd.h>

int __ttyname_r_chk(int fd, char *name, size_t size, size_t namelen)
{
	if (size > namelen) a_crash();
	return ttyname_r(fd, name, size);
}
debug log:

solving 50e70e5 ...
found 50e70e5 in https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/

applying [1/1] https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/
diff --git a/src/compat/ttyname_r_chk.c b/src/compat/ttyname_r_chk.c
new file mode 100644
index 0000000..50e70e5

Checking patch src/compat/ttyname_r_chk.c...
Applied patch src/compat/ttyname_r_chk.c cleanly.

index at:
100644 50e70e5d5d17a321996138db1c1279a28d0ba345	src/compat/ttyname_r_chk.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).