mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 21:55:22 -04:00
dbus-proxy: Avoid clang warning
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user