From 42221db74c2ce57b6452d3b60302fc2b6a6da03c Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 27 Dec 2010 15:42:37 +0100 Subject: Use PATH_MAX from limits.h --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index dea30b9..1f5cd3e 100644 --- a/src/main.c +++ b/src/main.c @@ -41,6 +41,7 @@ THE SOFTWARE. #include #include #include +#include /* pandora.com library */ #include @@ -397,8 +398,7 @@ static void BarMainLoop (BarApp_t *app) { int main (int argc, char **argv) { static BarApp_t app; - /* FIXME: max path length? */ - char ctlPath[1024]; + char ctlPath[PATH_MAX]; /* terminal attributes _before_ we started messing around with ~ECHO */ struct termios termOrig; -- cgit v1.2.3