From 183fff6e13f6825c81f0b234773da7f6c74ed4ed Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 19 Jan 2008 06:12:13 +0000 Subject: - bbslua: fix w32 issue git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3845 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbslua.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index e1c6da32..e4593d25 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -114,14 +114,14 @@ enum { #define BLSCONF_GPATH BBSHOME "/luastore" #define BLSCONF_UPATH ".luastore" -#define BBSLUA_USAGE +// #define BBSLUA_USAGE #ifdef _WIN32 # undef BLCONF_MMAP_ATTACH # undef BLCONF_CURRENT_USERID # define BLCONF_CURRENT_USERID "guest" # undef BLCONF_CURRENT_USERNICK -# undef BLCONF_CURRENT_USERNICK "´ú¸Õ±b¸¹" +# define BLCONF_CURRENT_USERNICK "´ú¸Õ±b¸¹" #endif ////////////////////////////////////////////////////////////////////////// @@ -739,14 +739,14 @@ bls_setfn(char *fn, const char *p) switch(bls_getcat(p)) { case BLS_GLOBAL: - snprintf(fn, PATHLEN, "%s/%08X", + _snprintf(fn, PATHLEN, "%s/%08X", BLSCONF_GPATH, blrt.hash); return 1; case BLS_USER: setuserfile(fn, BLSCONF_UPATH); mkdir(fn, 0755); assert(strlen(fn) +8 <= PATHLEN); - snprintf(fn + strlen(fn), + _snprintf(fn + strlen(fn), PATHLEN - strlen(fn), "/%08X", blrt.hash); return 1; -- cgit v1.2.3