From 7a1643e6fa7d654be89d8ce4d04170108f7ba5e5 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 25 Apr 2013 12:25:14 +0200 Subject: ltunify: fix device type validation --- ltunify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltunify.c') diff --git a/ltunify.c b/ltunify.c index d770a8b..63a5316 100644 --- a/ltunify.c +++ b/ltunify.c @@ -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(); -- cgit v1.2.1