One last minor tweak to clean_fname().
authorWayne Davison <wayned@samba.org>
Thu, 12 Aug 2004 20:04:47 +0000 (20:04 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 12 Aug 2004 20:04:47 +0000 (20:04 +0000)
util.c

diff --git a/util.c b/util.c
index e18f991..79050d3 100644 (file)
--- a/util.c
+++ b/util.c
@@ -704,9 +704,7 @@ unsigned int clean_fname(char *name, BOOL collapse_dot_dot)
                                        f += 2;
                                        continue;
                                }
-                               *t++ = *f++;
-                               *t++ = *f++;
-                               limit = t;
+                               limit = t + 2;
                        }
                }
                while (*f && (*t++ = *f++) != '/') {}