diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-19 14:14:42 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-19 14:14:42 +0800 |
commit | d25ece0082e11b93ab6bf3117673040e54ea6b91 (patch) | |
tree | bc5ea44891ca39d9bd0bad14259e33c3775b0963 /mbbsd | |
parent | 183fff6e13f6825c81f0b234773da7f6c74ed4ed (diff) | |
download | pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar.gz pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar.bz2 pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar.lz pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar.xz pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.tar.zst pttbbs-d25ece0082e11b93ab6bf3117673040e54ea6b91.zip |
- bbslua: fix w32 snprintf issue
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3846 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbslua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbslua.c b/mbbsd/bbslua.c index e4593d25..23dc0ed4 100644 --- a/mbbsd/bbslua.c +++ b/mbbsd/bbslua.c @@ -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; |