更新 'utils/fgcom/fgcom_external.cxx'

This commit is contained in:
zhongjin 2022-11-30 21:31:33 +08:00
parent d8ef512d58
commit d190fc9313

View File

@ -483,6 +483,13 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
(int) (freq * 1000 + 0.5) ); (int) (freq * 1000 + 0.5) );
exten[16] = '\0'; exten[16] = '\0';
sprintf( exten,
"%02d%06d",
prefix,
(int) (freq * 1000 + 0.5) );
exten[8] = '\0';
snprintf( phoneNumber, snprintf( phoneNumber,
sizeof(phoneNumber), sizeof(phoneNumber),
"%s:%s@%s/%s", "%s:%s@%s/%s",