--- a/cgi/cmd.c
+++ b/cgi/cmd.c
@@ -311,7 +311,6 @@
 
 		/* do some basic length checking on the variable identifier to prevent buffer overflows */
 		if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
-			x++;
 			continue;
 			}