GUACAMOLE-221: Correct faulty double-increment of args (should advance ONE at a time).

This commit is contained in:
Michael Jumper 2020-07-02 04:56:40 -07:00
parent aa3a9cde6c
commit 0cdc51acd1

View File

@ -165,7 +165,7 @@ static int guac_argv_is_received(const char** args) {
/* Fail immediately for any matching non-received arguments */
for (const char** arg = args; *arg != NULL; arg++) {
if (strcmp(state->name, *(arg++)) == 0)
if (strcmp(state->name, *arg) == 0)
return 0;
}