Fixed build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20134 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-02-15 18:59:45 +00:00
parent 158a9c384b
commit 8d96648eab
+1 -2
View File
@@ -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);
}