Skip to content

Commit

Permalink
Fixed callsign db for d868 and d878.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatuschek committed Apr 24, 2021
1 parent 5e04b51 commit 2a0833b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/d878uv_callsigndb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ D878UVCallsignDB::entry_t::fromUser(const UserDatabase::User &user) {
// append call
n = std::min(8, user.call.size());
strncpy(strings, user.call.toLocal8Bit().data(), n); size += n; strings += n;
(*strings) = 0x00; size ++; strings ++;
// append state
n = std::min(16, user.state.size());
strncpy(strings, user.state.toLocal8Bit().data(), n); size += n; strings += n;
Expand Down

0 comments on commit 2a0833b

Please sign in to comment.