kopia lustrzana https://github.com/Hamlib/Hamlib
Fix segfault in aclog.c
rodzic
50a14bb08f
commit
eb1d467236
|
@ -301,7 +301,7 @@ static int aclog_transaction(RIG *rig, char *cmd, char *value,
|
||||||
// we get an unknown response if function does not exist
|
// we get an unknown response if function does not exist
|
||||||
if (strstr(xml, "UNKNOWN")) { set_transaction_inactive(rig); RETURNFUNC(RIG_ENAVAIL); }
|
if (strstr(xml, "UNKNOWN")) { set_transaction_inactive(rig); RETURNFUNC(RIG_ENAVAIL); }
|
||||||
|
|
||||||
strncpy(value, xml, value_len);
|
if (value) strncpy(value, xml, value_len);
|
||||||
|
|
||||||
}
|
}
|
||||||
while (((value && strlen(value) == 0))
|
while (((value && strlen(value) == 0))
|
||||||
|
|
Ładowanie…
Reference in New Issue