diff options
Diffstat (limited to 'sysutils/du2ps/files/patch-ac')
-rw-r--r-- | sysutils/du2ps/files/patch-ac | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/sysutils/du2ps/files/patch-ac b/sysutils/du2ps/files/patch-ac index 7b7471a..a979c3f 100644 --- a/sysutils/du2ps/files/patch-ac +++ b/sysutils/du2ps/files/patch-ac @@ -1,6 +1,6 @@ ---- nodeop.c.orig Tue Mar 15 18:15:58 1994 -+++ nodeop.c Wed Jun 6 15:03:28 2001 -@@ -142,7 +142,8 @@ +--- nodeop.c.orig Wed Mar 16 13:10:45 1994 ++++ nodeop.c Sun Mar 21 17:44:55 2004 +@@ -142,7 +142,8 @@ int depth; /* for each child */ for(np = nodep->child; NODE_NULL != np; np = np->peer){ @@ -10,3 +10,33 @@ drawrect(np, y, height, depth); +@@ -172,9 +173,9 @@ parse() + if('/' == *n) n++; /* skip leading / */ + path[depth = 0] = n; + +- for(; NULL != *n; n++){ ++ for(; '\0' != *n; n++){ + if('/' == *n){ +- *n = NULL; ++ *n = '\0'; + path[++depth] = n + 1; + if(depth > MAXDEPTH) break; + } +@@ -193,7 +194,7 @@ parse() + + if (1 == top->nchild) { + top = top->child; +- while (NULL != *n) n++; ++ while ('\0' != *n) n++; + *n = '/'; + } + else if(1 < top->nchild){ +@@ -204,7 +205,7 @@ parse() + } + else break; + } +- *n = NULL; ++ *n = '\0'; + return strdup(name); + } + |