diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 20:30:35 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 20:30:35 +0800 |
commit | 7a80b6b9984876bd3ebe1b5aa41df90dc61fa892 (patch) | |
tree | e4e5143506b65f6a82fa3b99ac328f4e9aa14aa7 /mbbsd | |
parent | a3716fcd0d71c8b42a3024bae903e42531bc0ebe (diff) | |
download | pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar.gz pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar.bz2 pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar.lz pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar.xz pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.tar.zst pttbbs-7a80b6b9984876bd3ebe1b5aa41df90dc61fa892.zip |
* code refine to mbbsd
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4591 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 4cdf284d..f6f99cbb 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1612,13 +1612,13 @@ bool parse_bindport_conf(const char *path, struct ProgramOption *option) while (fgets(buf, sizeof(buf), fp)) { - if (sscanf(buf, "%s %s", vprogram, vport) != 2 || + if (sscanf(buf, "%s%s", vprogram, vport) != 2 || strcmp(vprogram, "mbbsd") != 0) continue; if (strcmp(vport, "tunnel") == 0) { - if (sscanf(buf, "%s %s %s", vprogram, vport, vopt) != 3) + if (sscanf(buf, "%*s%*s%s", vopt) != 1 || !*vopt) { fprintf(stderr, "error: invalid tunnel setting in %s.\r\n", path); |