anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0185-sd-bus-use-size_t-when-dealing-with-memory-offsets.patch

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