Fix a piece of embarrassingly untested pointer-twiddling.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 16 Oct 2009 17:21:32 +0000 (17:21 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 16 Oct 2009 17:21:32 +0000 (17:21 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8720 cda61777-01e9-0310-a592-d414129be87e

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);