From 60742d75429c8599212feb139a6623eda7e286f2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 20 May 2020 15:21:44 +0200 Subject: [PATCH] pw-cli: allocate nodes ids of the right size --- src/tools/pw-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/pw-cli.c b/src/tools/pw-cli.c index 09a47b69a..e91be8c14 100644 --- a/src/tools/pw-cli.c +++ b/src/tools/pw-cli.c @@ -1742,7 +1742,7 @@ children_of(struct remote_data *rd, uint32_t parent_id, if (!count) return 0; - *children = malloc(sizeof(*children) * count); + *children = malloc(sizeof(uint32_t) * count); if (!*children) return -1; }