--- lbbs/src/init.c 2025/05/05 11:46:04 1.16 +++ lbbs/src/init.c 2025/05/05 14:27:57 1.17 @@ -104,7 +104,7 @@ int load_conf(const char *conf_file) } if (strcmp(c_name, "bbs_port") == 0) { - fscanf(fin, "%ud", &BBS_port); + fscanf(fin, "%hu", &BBS_port); } if (strcmp(c_name, "bbs_max_client") == 0) {