- fixed spelling errors in man page
[rsync/rsync.git] / flist.c
diff --git a/flist.c b/flist.c
index 6b51ee2..ef1d098 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -634,10 +634,9 @@ static void clean_fname(char *name)
 
     if (strncmp(p=name,"./",2) == 0) {      
       modified = 1;
-      while (*p) {
+      do {
        p[0] = p[2];
-       p++;
-      }
+      } while (*p++);
     }
 
     l = strlen(p=name);