Fix a piece of embarrassingly untested pointer-twiddling.
[sgt/agedu] / agedu.c
diff --git a/agedu.c b/agedu.c
index 2b9fcdd..add92ac 100644 (file)
--- a/agedu.c
+++ b/agedu.c
@@ -1038,9 +1038,10 @@ int main(int argc, char **argv)
                                }
                                p++;
                            }
+                       } else {
+                           p++;
                        }
                        *q++ = c;
-                       p++;
                    }
                    *q = '\0';
                    triebuild_add(ctx->tb, buf, &tf);