summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2010-12-27 15:42:37 +0100
committerLars-Dominik Braun <lars@6xq.net>2010-12-27 15:42:37 +0100
commit42221db74c2ce57b6452d3b60302fc2b6a6da03c (patch)
tree4a495c5d965e4f6fcfb7bd390b7cd3319171f156 /src/main.c
parenteadc96008ca6fa0a335ab35daaff0cfd24546cf9 (diff)
downloadpianobar-windows-42221db74c2ce57b6452d3b60302fc2b6a6da03c.tar.gz
pianobar-windows-42221db74c2ce57b6452d3b60302fc2b6a6da03c.tar.bz2
pianobar-windows-42221db74c2ce57b6452d3b60302fc2b6a6da03c.zip
Use PATH_MAX from limits.h
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
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 <pthread.h>
#include <assert.h>
#include <stdbool.h>
+#include <limits.h>
/* pandora.com library */
#include <piano.h>
@@ -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;