mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
Merge pull request #209 from narspt/patch-14
change SetYsfCallsign() to trim callsign on null char
This commit is contained in:
commit
e87eb8e3dd
|
|
@ -207,7 +207,7 @@ void CCallsign::SetYsfCallsign(const char *sz)
|
|||
m_uiDmrid = 0;
|
||||
|
||||
// set callsign
|
||||
for ( i = 0; (i < sizeof(m_Callsign)) && (sz[i] != '/') && (sz[i] != '-'); i++ )
|
||||
for ( i = 0; (i < sizeof(m_Callsign)) && (sz[i] != '/') && (sz[i] != '-') && (sz[i] != 0x00); i++ )
|
||||
{
|
||||
m_Callsign[i] = sz[i];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
#define VERSION_MAJOR 2
|
||||
#define VERSION_MINOR 5
|
||||
#define VERSION_REVISION 1
|
||||
#define VERSION_REVISION 2
|
||||
|
||||
// global ------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue