imported new snprintf.c from samba, got rid of slprintf
[rsync/rsync.git] / rsync.c
diff --git a/rsync.c b/rsync.c
index 5ee50c0..3e50f38 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -91,7 +91,7 @@ int delete_file(char *fname)
                if (strcmp(dname,".")==0 ||
                    strcmp(dname,"..")==0)
                        continue;
-               slprintf(buf, sizeof(buf), "%s/%s", fname, dname);
+               snprintf(buf, sizeof(buf), "%s/%s", fname, dname);
                if (verbose > 0)
                        rprintf(FINFO,"deleting %s\n", buf);
                if (delete_file(buf) != 0) {