From bc4fa28516d884765f23f5e9087e82d69452b152 Mon Sep 17 00:00:00 2001 From: Stewart Gleadow Date: Sat, 5 Nov 2011 13:46:08 +1100 Subject: [PATCH] Correct number of arguments check to run with debugger and device id --- fruitstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fruitstrap.c b/fruitstrap.c index 0d724bb..111a6f1 100644 --- a/fruitstrap.c +++ b/fruitstrap.c @@ -366,7 +366,7 @@ void device_callback(struct am_device_notification_callback_info *info, void *ar } int main(int argc, char *argv[]) { - if (argc < 2 || argc > 3) { + if (argc < 2 || argc > 4) { printf("usage: %s [-d] [device_id]\n", argv[0]); exit(1); }