From d30b91f4a44456c186cf41718f7b3a406c5aae8b Mon Sep 17 00:00:00 2001 From: Graeme Campbell Date: Wed, 16 Oct 2024 16:35:26 +1300 Subject: [PATCH] Fix the paths for the periodic sync update The current code is inserting two slashes (//) into the periodic sync update messages. This is causing issues on the receiving device. --- syncer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncer.c b/syncer.c index c976256..93676a4 100644 --- a/syncer.c +++ b/syncer.c @@ -344,7 +344,7 @@ sync_tree_process (GNode *node, gpointer arg) ts = apteryx_timestamp (path); if (ts && ts > params->ts) { - APTERYX_LEAF (params->root, strdup (path), (char *) node->data); + APTERYX_LEAF (params->root, strdup (path + 1), (char *) node->data); node->data = NULL; } }