Skip to content

Commit

Permalink
Fix the paths for the periodic sync update
Browse files Browse the repository at this point in the history
The current code is inserting two slashes (//) into the periodic
sync update messages. This is causing issues on the receiving
device.
  • Loading branch information
gcampbell512 authored and sparlane committed Oct 16, 2024
1 parent d630574 commit d30b91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d30b91f

Please sign in to comment.