MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

proper MAX_PATH detection

+9 -1
+8
include/compat.h
··· 5 5 #include <string.h> 6 6 #include <stdlib.h> 7 7 8 + #ifndef PATH_MAX 9 + #ifdef _WIN32 10 + #define PATH_MAX MAX_PATH 11 + #else 12 + #define PATH_MAX 4096 13 + #endif 14 + #endif 15 + 8 16 #ifdef _WIN32 9 17 #include <winsock2.h> 10 18 #include <windows.h>
+1 -1
src/main.c
··· 98 98 char *buffer = NULL; 99 99 size_t len = 0; 100 100 101 - char abs_path[4096]; 101 + char abs_path[PATH_MAX]; 102 102 const char *use_path = filename; 103 103 104 104 if (esm_is_url(filename)) {