Fix testcache.c to avoid modifying constant

pull/750/head
root 2021-07-14 23:22:46 -04:00
rodzic dd376a1267
commit dbdf86fa9a
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -64,8 +64,10 @@ int main(int argc, char *argv[])
if (info_buf) if (info_buf)
{ {
strtok(info_buf, "\r\n"); char *s = strdup(info_buf);
printf("Rig_info: '%s'\n", info_buf); strtok(s, "\r\n");
printf("Rig_info: '%s'\n", s);
free(s);
} }
vfo_t vfo; vfo_t vfo;