dbus-proxy: Avoid clang warning

tingping/wmclass
Alexander Larsson 2015-08-27 16:15:35 +02:00
parent 53df418814
commit e5e5389bb3
1 changed files with 1 additions and 1 deletions

View File

@ -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;