-Wpointer-arith -Wformat=2 -Winit-self \
        -Wswitch-enum -Wunused-variable -Wbad-function-cast \
        -Wno-strict-aliasing -fno-strict-aliasing
-ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS)
+ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS) $(CMDLINE_CFLAGS)
 CPPFLAGS:=@CPPFLAGS@
 LDFLAGS:=@LDFLAGS@
 LDLIBS:=@LIBS@
 
     be->npending=0;
     be->bufstop=buf+1;
     be->out=buf+buflen;
-    for (i=mydompathlen-1; i>=0; i++) {
+    for (i=mydompathlen-1; i>=0; i--) {
        const char *lab=mydompath[i];
        int ll=strlen(lab);
        if (ll>63) return FAKERCODE_MYDOMAINLABELTOOLONG;