mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-06 04:32:28 +00:00
Fix redbean hidden path bug
This commit is contained in:
parent
f271ffcf90
commit
a3ccc5af1f
1 changed files with 3 additions and 3 deletions
|
@ -680,9 +680,9 @@ static void ProgramPort(long x) {
|
||||||
|
|
||||||
static void SetDefaults(void) {
|
static void SetDefaults(void) {
|
||||||
#ifdef STATIC
|
#ifdef STATIC
|
||||||
ProgramBrand("redbean-static/1.2");
|
ProgramBrand("redbean-static/1.3");
|
||||||
#else
|
#else
|
||||||
ProgramBrand("redbean/1.2");
|
ProgramBrand("redbean/1.3");
|
||||||
#endif
|
#endif
|
||||||
__log_level = kLogInfo;
|
__log_level = kLogInfo;
|
||||||
maxpayloadsize = 64 * 1024;
|
maxpayloadsize = 64 * 1024;
|
||||||
|
@ -3259,7 +3259,7 @@ static int LuaHidePath(lua_State *L) {
|
||||||
size_t pathlen;
|
size_t pathlen;
|
||||||
const char *path;
|
const char *path;
|
||||||
path = luaL_checklstring(L, 1, &pathlen);
|
path = luaL_checklstring(L, 1, &pathlen);
|
||||||
AddString(&hidepaths, path, pathlen);
|
AddString(&hidepaths, memcpy(malloc(pathlen), path, pathlen), pathlen);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue