diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-08-27 16:15:35 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-08-27 16:15:35 +0200 |
commit | e5e5389bb39030b05eff6f6af0be7e5fcaa28ef8 (patch) | |
tree | 2cf8a14e17b82246aa155639677cc956d2a86737 /dbus-proxy | |
parent | 53df4188142ab9b2ceeb251cc34b495825ddaf24 (diff) | |
download | xdg-app-e5e5389bb39030b05eff6f6af0be7e5fcaa28ef8.tar.gz |
dbus-proxy: Avoid clang warning
Diffstat (limited to 'dbus-proxy')
-rw-r--r-- | dbus-proxy/xdg-app-proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus-proxy/xdg-app-proxy.c b/dbus-proxy/xdg-app-proxy.c index 08dbd4d..333cc35 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; |