Fix segfault in aclog.c

pull/1242/head
Mike Black W9MDB 2023-01-20 15:39:23 -06:00
rodzic 50a14bb08f
commit eb1d467236
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -301,7 +301,7 @@ static int aclog_transaction(RIG *rig, char *cmd, char *value,
// we get an unknown response if function does not exist
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))