1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 19:03:12 +02:00

Updated TRE dll and fixed a MAX_PATH problem

This commit is contained in:
codemastr
2003-12-23 01:47:02 +00:00
parent 99d1b1e0d1
commit 084d57cef1
5 changed files with 5 additions and 2 deletions
+2
View File
@@ -2665,3 +2665,5 @@ seen. gmtime warning still there
- Added a function join_channel which will make it easier for module coders to force users
to join a channel
- Made it possible to compile the win32 version with libcurl support
- Updated the win32 TRE lib/dll to the latest version (0.6.3)
- Fixed a PATH_MAX vs MAX_PATH problem
+1
View File
@@ -127,6 +127,7 @@ typedef unsigned int u_int;
#ifdef _WIN32
#define MYOSNAME OSName
extern char OSName[256];
#define PATH_MAX MAX_PATH
#endif
#ifdef DEBUGMODE
// #define ircsprintf sprintf
+2 -2
View File
@@ -1693,11 +1693,11 @@ char *unreal_mktemp(char *dir, char *suffix)
{
FILE *fd;
unsigned int i;
static char tempbuf[MAX_PATH+1];
static char tempbuf[PATH_MAX+1];
for (i = 500; i > 0; i--)
{
snprintf(tempbuf, MAX_PATH, "%s/%X.%s", dir, rand(), suffix);
snprintf(tempbuf, PATH_MAX, "%s/%X.%s", dir, rand(), suffix);
fd = fopen(tempbuf, "r");
if (!fd)
return tempbuf;
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.