Fix mkstemp permission error on Windows

https://github.com/Hamlib/Hamlib/issues/985
pull/1022/head
Mike Black W9MDB 2022-04-29 17:55:19 -05:00
rodzic 0b62193d92
commit 56efa155dc
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1040,7 +1040,8 @@ HAMLIB_EXPORT(int) rig_settings_save(char *setting, void *value,
return RIG_OK;
}
mkstemp(template);
int fd = mkstemp(template);
close(fd);
printf("template=%s\n",template);
fptmp = fopen(template, "w");