From 2b733a8ab4386ec7374dc45dc9b11a54f4200b02 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Wed, 4 Nov 2009 22:46:45 -0800 Subject: [PATCH] hdt: fix arguments parsing Do not increment the argument counter in the loop after having found the last auto= argument. It is taken care of by the for. With it, an extra argument after the auto= string will be ignored. Signed-off-by: Pierre-Alexandre Meyer --- com32/hdt/hdt-common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/com32/hdt/hdt-common.c b/com32/hdt/hdt-common.c index c3873dd..509aac7 100644 --- a/com32/hdt/hdt-common.c +++ b/com32/hdt/hdt-common.c @@ -101,7 +101,6 @@ void detect_parameters(const int argc, const char *argv[], if (iauto_label,argv[i]); hardware->auto_label[strlen(hardware->auto_label)-1]=0; - i++; } } } -- 2.7.4