From e5e5389bb39030b05eff6f6af0be7e5fcaa28ef8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 27 Aug 2015 16:15:35 +0200 Subject: [PATCH] dbus-proxy: Avoid clang warning --- dbus-proxy/xdg-app-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus-proxy/xdg-app-proxy.c b/dbus-proxy/xdg-app-proxy.c index 08dbd4de..333cc35b 100644 --- a/dbus-proxy/xdg-app-proxy.c +++ b/dbus-proxy/xdg-app-proxy.c @@ -2097,7 +2097,7 @@ find_auth_end (XdgAppProxyClient *client, Buffer *buffer) gsize left = strlen (AUTH_END_STRING) - client->auth_end_offset; gsize to_match = MIN (left, buffer->pos); /* Matched at least up to to_match */ - if (memcmp (buffer->data, AUTH_END_STRING + client->auth_end_offset, to_match) == 0) + if (memcmp (buffer->data, &AUTH_END_STRING[client->auth_end_offset], to_match) == 0) { client->auth_end_offset += to_match;