1
0
Fork 0
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:
Chris Recoskie 2011-11-29 17:49:54 -05:00
parent ad09f40af5
commit d4ea43f6c8
3 changed files with 1 additions and 1 deletions

View file

@ -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 */