diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-30 14:54:40 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-07-30 14:54:40 +0800 |
commit | c0c9d87226fcdd179335b6f7356499ce05219b09 (patch) | |
tree | 6fc81a1bab6ff112288402fcef31a9a3425a1e4c /mbbsd/more.c | |
parent | 9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02 (diff) | |
download | pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.gz pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.bz2 pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.lz pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.xz pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.zst pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.zip |
use correct type: size_t/int/long/pointer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index 1524ba28..5feb34b7 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -239,12 +239,12 @@ more(char *fpath, int promptend) SearchStr[strlen(search_str)] = 0; searching = 0; snprintf(msg, sizeof(msg), - "%.*s\033[7m%s\033[m", pos - buf, buf, + "%.*s\033[7m%s\033[m", (int)(pos - buf), buf, SearchStr); while ((pos = fptr(pos1 = pos + strlen(search_str), search_str))) { snprintf(buf1, sizeof(buf1), - "%.*s\033[7m%s\033[m", pos - pos1, + "%.*s\033[7m%s\033[m", (int)(pos - pos1), pos1, SearchStr); strlcat(msg, buf1, sizeof(msg)); } |