summaryrefslogtreecommitdiff
path: root/src/bin/e_alert_main.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-22 07:02:41 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-22 07:02:41 +0000
commita8beb0950cc96d1589d8540e10fc389b0676f5f7 (patch)
tree0713723103ed9a099bb8b14ff85b92b040f86944 /src/bin/e_alert_main.c
parentb565b6ca04d96addde112e0f435d6073141e1b14 (diff)
fix usage of PATH_MAX when not working with files
SVN revision: 75518
Diffstat (limited to 'src/bin/e_alert_main.c')
-rw-r--r--src/bin/e_alert_main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bin/e_alert_main.c b/src/bin/e_alert_main.c
index 635b847ae..bb62d1719 100644
--- a/src/bin/e_alert_main.c
+++ b/src/bin/e_alert_main.c
@@ -14,10 +14,6 @@
14#include <xcb/xcb.h> 14#include <xcb/xcb.h>
15#include <xcb/shape.h> 15#include <xcb/shape.h>
16 16
17#ifndef PATH_MAX
18#define PATH_MAX 4096
19#endif
20
21#define WINDOW_WIDTH 320 17#define WINDOW_WIDTH 320
22#define WINDOW_HEIGHT 240 18#define WINDOW_HEIGHT 240
23 19
@@ -451,7 +447,7 @@ static void
451_e_alert_draw_text(void) 447_e_alert_draw_text(void)
452{ 448{
453 xcb_void_cookie_t cookie; 449 xcb_void_cookie_t cookie;
454 char warn[1024], msg[PATH_MAX], line[1024]; 450 char warn[1024], msg[4096], line[1024];
455 unsigned int i = 0, j = 0, k = 0; 451 unsigned int i = 0, j = 0, k = 0;
456 452
457 snprintf(msg, sizeof(msg), 453 snprintf(msg, sizeof(msg),