daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From 51747496a38894d76d3e5b4295c54b1654b7eb69 Mon Sep 17 00:00:00 2001
ff6046
From: Lennart Poettering <lennart@poettering.net>
ff6046
Date: Wed, 10 Oct 2018 11:12:22 +0200
ff6046
Subject: [PATCH] sd-bus: use size_t when dealing with memory offsets
ff6046
ff6046
(cherry picked from commit 3cae6c21e732fd46ff024d6625243d88ef6377ed)
ff6046
ff6046
Resolves: #1683319
ff6046
---
ff6046
 src/libsystemd/sd-bus/bus-creds.c | 2 +-
ff6046
 1 file changed, 1 insertion(+), 1 deletion(-)
ff6046
ff6046
diff --git a/src/libsystemd/sd-bus/bus-creds.c b/src/libsystemd/sd-bus/bus-creds.c
ff6046
index b180a033b8..6896bcf246 100644
ff6046
--- a/src/libsystemd/sd-bus/bus-creds.c
ff6046
+++ b/src/libsystemd/sd-bus/bus-creds.c
ff6046
@@ -651,7 +651,7 @@ _public_ int sd_bus_creds_get_description(sd_bus_creds *c, const char **ret) {
ff6046
         return 0;
ff6046
 }
ff6046
 
ff6046
-static int has_cap(sd_bus_creds *c, unsigned offset, int capability) {
ff6046
+static int has_cap(sd_bus_creds *c, size_t offset, int capability) {
ff6046
         size_t sz;
ff6046
 
ff6046
         assert(c);