summaryrefslogtreecommitdiffstats
path: root/ui/common/discover-client.c
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-04-12 15:11:37 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-06-30 15:28:55 +0800
commite058e90117300125af7b6e93eb0e5aeb23543af9 (patch)
treebce5275dfd1ac92a7b3da8875ba876f1d6dadcff /ui/common/discover-client.c
parentea45e832b0d3e4a6e8c63f6a1c4741795b0b33dd (diff)
downloadtalos-petitboot-e058e90117300125af7b6e93eb0e5aeb23543af9.tar.gz
talos-petitboot-e058e90117300125af7b6e93eb0e5aeb23543af9.zip
Fix memmove size
Correct the byte count for several memmove calls. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/common/discover-client.c')
-rw-r--r--ui/common/discover-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/common/discover-client.c b/ui/common/discover-client.c
index b1ef440..e8ce4dd 100644
--- a/ui/common/discover-client.c
+++ b/ui/common/discover-client.c
@@ -111,7 +111,7 @@ static void device_remove(struct discover_client *client, const char *id)
/* remove the device from the client's device array */
client->n_devices--;
memmove(&client->devices[i], &client->devices[i+1],
- client->n_devices - i);
+ (client->n_devices - i) * sizeof(client->devices[0]));
client->devices = talloc_realloc(client, client->devices,
struct device *, client->n_devices);
OpenPOWER on IntegriCloud