1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-28 15:10:27 +08:00

以rb打开cfg

This commit is contained in:
fumiama
2021-05-18 21:11:18 +08:00
parent 77976e5e8e
commit 2b09777a17

View File

@@ -483,7 +483,7 @@ int main(int argc, char *argv[]) {
data_path = argv[as_daemon?5:4]; data_path = argv[as_daemon?5:4];
fclose(fp); fclose(fp);
fp = NULL; fp = NULL;
fp = fopen(argv[as_daemon?6:5], "rb+"); fp = fopen(argv[as_daemon?6:5], "rb");
if(fp) { if(fp) {
SIMPLE_PB* spb = get_pb(fp); SIMPLE_PB* spb = get_pb(fp);
cfg = (CONFIG*)spb->target; cfg = (CONFIG*)spb->target;