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:
@@ -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
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user