]> err.no Git - dpkg/commitdiff
Fix off-by-one error
authorWichert Akkerman <wakkerma@debian.org>
Tue, 24 Jul 2001 17:17:04 +0000 (17:17 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Tue, 24 Jul 2001 17:17:04 +0000 (17:17 +0000)
main/showpkg.c

index eb116f4b811896a46713e0538bc50c6b16a1106f..832f8f3b2e2e6a2b056d87388e49e74f958a8241 100644 (file)
@@ -71,7 +71,7 @@ static void parsestring(struct lstitem* cur, const char* fmt, const char* fmtend
 
        cur->type=string;
        write=cur->data=(char*)malloc(len+1);
-       while (fmt<fmtend) {
+       while (fmt<=fmtend) {
                if (*fmt=='\\') {
                        fmt++;
                        switch (*fmt) {