Diff between f9f98c0b2aa44fe47482e083d428fa3b54ecdeb2 and 2908491c7efee5e14e880aa7a49ee6e5f098a24d
Changed Files
| File | Additions | Deletions | Status |
| monitor/packet.c | +2 | -1 | modified |
Full Patch
diff --git a/monitor/packet.c b/monitor/packet.c
index c2599fe..32a440b 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -26,6 +26,7 @@
#include <time.h>
#include <sys/time.h>
#include <sys/socket.h>
+#include <limits.h>
#include "lib/bluetooth.h"
#include "lib/uuid.h"
@@ -376,7 +377,7 @@ static void print_packet(struct timeval *tv, struct ucred *cred, char ident,
const char *text, const char *extra)
{
int col = num_columns();
- char line[256], ts_str[96], pid_str[140];
+ char line[LINE_MAX], ts_str[96], pid_str[140];
int n, ts_len = 0, ts_pos = 0, len = 0, pos = 0;
static size_t last_frame;