]> granicus.if.org Git - sudo/commitdiff
Add back buf and tty variables for _ttyname() case that were
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Apr 2012 17:10:26 +0000 (13:10 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 15 Apr 2012 17:10:26 +0000 (13:10 -0400)
inadvertantly removed.

src/ttyname.c

index e723681a8206eea1d66db593eff6a3a439843025..2730a69e2a42592b59ad4cfdde0c8a4018a780c6 100644 (file)
@@ -146,6 +146,7 @@ extern char *_ttyname_dev(dev_t rdev, char *buffer, size_t buflen);
 static char *
 sudo_ttyname_dev(dev_t tdev)
 {
+    char buf[TTYNAME_MAX], *tty;
     debug_decl(sudo_ttyname_dev, SUDO_DEBUG_UTIL)
 
     tty = _ttyname_dev(tdev, buf, sizeof(buf));