mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 365142 - Linux specific API used in AIX libpty -> NULL dereference
This commit is contained in:
parent
ad09f40af5
commit
d4ea43f6c8
3 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ ptym_open(char * pts_name)
|
|||
char *ptr;
|
||||
|
||||
strcpy(pts_name, "/dev/ptmx");
|
||||
fdm = getpt();
|
||||
fdm = posix_openpt(O_RDWR);
|
||||
if (fdm < 0)
|
||||
return -1;
|
||||
if (grantpt(fdm) < 0) { /* grant access to slave */
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue