diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-04-25 12:25:14 +0200 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2013-04-25 12:25:14 +0200 |
commit | 7a1643e6fa7d654be89d8ce4d04170108f7ba5e5 (patch) | |
tree | 7ad9f25a55f75b3d2a762a3e1c53105bf22c9764 /ltunify.c | |
parent | 98f9432088604a9a9336d6b8458bd5e010832437 (diff) | |
download | ltunify-7a1643e6fa7d654be89d8ce4d04170108f7ba5e5.tar.gz |
ltunify: fix device type validation
Diffstat (limited to 'ltunify.c')
-rw-r--r-- | ltunify.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -952,7 +952,7 @@ static int validate_args(int argc, char **argv, char ***args, char **hidraw_path return -1; } device_index = strtoul((*args)[1], &end, 0); - if (end != '\0') { + if (*end != '\0') { if (device_type_from_str((*args)[1]) == -1) { fprintf(stderr, "Invalid device type. Valid types are:\n"); print_device_types(); |