diff options
author | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-18 18:00:31 +0800 |
---|---|---|
committer | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-18 18:00:31 +0800 |
commit | 17799f4670364f95b26c99a68a5fb44a5470a721 (patch) | |
tree | 50f561d5b25200febfc2e6186094fdabc7a4838b | |
parent | dc334d60b27f9a99cea1926a0b74e899c42f9487 (diff) | |
download | pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar.gz pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar.bz2 pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar.lz pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar.xz pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.tar.zst pttbbs-17799f4670364f95b26c99a68a5fb44a5470a721.zip |
Fix 32/64-bit problem.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/stuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 90c0988a..0316bc50 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -747,7 +747,7 @@ char *aidu2fn(char *fn, aidu_t aidu) if(fn == NULL) return NULL; - snprintf(fn, FNLEN - 1, "%c.%ld.A.%03lX", ((type == 0) ? 'M' : 'G'), v1, v2); + snprintf(fn, FNLEN - 1, "%c.%d.A.%03X", ((type == 0) ? 'M' : 'G'), (unsigned int)v1, (unsigned int)v2); fn[FNLEN - 1] = '\0'; return fn; } |