Skip to content

Commit d2a99ba

Browse files
committed
fixed bugs: (1) bin pkg was empty (2) only accepted pkts of certain length.
1 parent 0cca12a commit d2a99ba

4 files changed

Lines changed: 21 additions & 2 deletions

File tree

debian/copyright

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
License goes here
1+
C++ Library to access X-Plane network API via UDP sockets
2+
Copyright (C) 2017, 2018 shahada abubakar
23

4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the Lesser GNU General Public License as
6+
published by the Free Software Foundation, either version 3 of the
7+
License, or (at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
and GNU Lesser General Public License along with this program. If
16+
not, see <https://www.gnu.org/licenses/>.
317

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/usr/bin/TestXPlaneBeaconListener
2+
/usr/bin/TestXPlaneUDPClient

patchDebian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sed -i -e "s/\${MAJORVERSION}/${MAJORVERSION}/" debian/control
2323

2424
ln -sf ${PACKAGE}.install debian/${PACKAGE}${MAJORVERSION}.install
2525
ln -sf ${PACKAGE}-dev.install debian/${PACKAGE}${MAJORVERSION}-dev.install
26+
ln -sf ${PACKAGE}-bin.install debian/${PACKAGE}${MAJORVERSION}-bin.install
2627

2728

2829
# substitute variables into the contents of the .install files

src/libsrc/XPlaneBeaconListener.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ void XPlaneBeaconListener::runListener() {
160160
break;
161161
}
162162

163-
else if (recv_len == 32 && memcmp(message, "BECN", 5) == 0) {
163+
164+
165+
else if (recv_len > 5 && memcmp(message, "BECN", 5) == 0) {
164166

165167
// parse the message
166168

0 commit comments

Comments
 (0)