aboutsummaryrefslogtreecommitdiff
path: root/examples/tty_conv.c
Commit message (Collapse)AuthorAgeFilesLines
* examples/tty_conv: fix potential out of bound write in readline()PavlNekrasov2024-09-131-1/+1
| | | | | | | | At the end of the loop the iterator `i` can be equal to `PAM_MAX_RESP_SIZE`, which will cause an index call outside the array in the `input[i] = '\0';` Signed-off-by: Dmitry V. Levin <ldv@strace.io>
* examples/tty_conv: fix build on muslViolet Purcell2023-05-121-2/+3
| | | | | | termio.h is the old System V version of the interface header, and is only provided in glibc and dietlibc as far as I can tell. This fixes it to use the POSIX termios.h instead.
* Add a conversation function exampleplanc2022-01-141-0/+177
* examples/Makefile.am: Add tty_conv to noinst_PROGRAMS * examples/tty_conv.c: A new example of conversation function.