From 8d96648eab52e38dd3a0d3b0836097f7ad91bce3 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 15 Feb 2007 18:59:45 +0000 Subject: [PATCH] Fixed build. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20134 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/unistd/ttyname.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/libroot/posix/unistd/ttyname.c b/src/system/libroot/posix/unistd/ttyname.c index 635c57aaa5..a9006f851f 100644 --- a/src/system/libroot/posix/unistd/ttyname.c +++ b/src/system/libroot/posix/unistd/ttyname.c @@ -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); }