Thread: v0.2 is up
View Single Post
Old 08-26-2008, 01:22 AM   #9
julien
Human being with feelings
 
Join Date: Jul 2006
Posts: 16
Default

Quote:
Originally Posted by Dan View Post
MAX_PATH is an integer that defines an outdated maximum length for file paths (256 chars).

To fix this on nix you just include limits.h, afaik.

Or you could just #define MAX_PATH 256 // (or a larger number if you are feeling bold)
Thanks, much better!

This is the new diff:

Code:
--- source/assniffer/http.cpp   2006-10-29 00:38:26.000000000 +0200
+++ new_working_debian/assniffer/http.cpp       2008-08-26 10:19:02.000000000 +0200
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include "platform.h"
-
+#include <ctype.h>
 #include "pcap.h"
 #include "http.h"

@@ -32,6 +32,8 @@
     #include <winsock2.h>
 #endif

+#define MAX_PATH 256
+
 // configurable items of http.cpp
 int g_config_usemime=2; // 1=append, 2=replace extension
 int g_config_debugfn=0;
julien is offline   Reply With Quote