Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix strncmp length for -c logout

  • Loading branch information...
commit ff7641193a245f87841adb61f7b9b265413863a2 1 parent bad7989
@stbuehler stbuehler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main.c
View
2  src/main.c
@@ -811,7 +811,7 @@ int main(int argc, char **argv) {
} else {
return rc;
}
- } else if (!strncmp(devcmd, "logout", 5)) { /*device control cmd */
+ } else if (!strncmp(devcmd, "logout", 6)) { /*device control cmd */
/* command */
snprintf(command, sizeof(command), "logout dev://%s\n", devnduid);
devport = NOVACOM_CTRLPORT;
Please sign in to comment.
Something went wrong with that request. Please try again.