Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20134 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
158a9c384b
commit
8d96648eab
@ -26,7 +26,6 @@ int
|
||||
ttyname_r(int fd, char *buffer, size_t bufferSize)
|
||||
{
|
||||
struct stat fdStat;
|
||||
int err;
|
||||
|
||||
// first, some sanity checks:
|
||||
if (fstat(fd, &fdStat) < 0)
|
||||
@ -38,7 +37,7 @@ ttyname_r(int fd, char *buffer, size_t bufferSize)
|
||||
}
|
||||
|
||||
// just ask devfs
|
||||
return ioctl(fd, B_GET_PATH_FOR_DEVICE, name, namesize);
|
||||
return ioctl(fd, B_GET_PATH_FOR_DEVICE, buffer, bufferSize);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user