]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
edit: Fix completion of arguments other than the first one
authorJouni Malinen <j@w1.fi>
Sat, 20 Nov 2010 09:45:42 +0000 (11:45 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Nov 2010 09:45:42 +0000 (11:45 +0200)
src/utils/edit.c

index 62ba0e13583108294b5b3b76e4a53d941f038405..a43cf2fe68ff95052b2c17f37e2a6310b199d4d9 100644 (file)
@@ -364,7 +364,7 @@ static void complete(int list)
 
        end = cmdbuf_pos;
        start = end;
-       while (start > 0 && cmdbuf[start] != ' ')
+       while (start > 0 && cmdbuf[start - 1] != ' ')
                start--;
        plen = end - start;