A tiny cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12220 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-04-01 14:24:19 +00:00
parent e02e12de8a
commit 7cac40a1f2
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ char *
ctermid(char *s)
{
static char defaultBuffer[L_ctermid];
char *name = ttyname(1);
char *name = ttyname(STDOUT_FILENO);
// we assume that stdout is our controlling terminal...
if (s == NULL)